We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 25da27a + d46d838 commit 4dba926Copy full SHA for 4dba926
src/platform.rs
@@ -9,8 +9,6 @@ use std::fs;
9
use std::path::PathBuf;
10
use std::time::{SystemTime, UNIX_EPOCH};
11
12
-use is_terminal::IsTerminal as _;
13
-
14
// Last-modified time of a directory, in milliseconds since the UNIX epoch.
15
pub fn dir_last_modified(dir: &fs::DirEntry) -> u128 {
16
dir.metadata()
@@ -57,6 +55,7 @@ pub fn binary_cache_path() -> PathBuf {
57
55
#[cfg(unix)]
58
56
mod inner {
59
pub use super::*;
+ use is_terminal::IsTerminal as _;
60
61
/**
62
Returns `true` if `rust-script` should force Cargo to use coloured output.
0 commit comments