Skip to content

Commit 4dba926

Browse files
authored
Merge pull request #92 from tottoto/fix-unresolved-import
Fix unresolved import
2 parents 25da27a + d46d838 commit 4dba926

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/platform.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ use std::fs;
99
use std::path::PathBuf;
1010
use std::time::{SystemTime, UNIX_EPOCH};
1111

12-
use is_terminal::IsTerminal as _;
13-
1412
// Last-modified time of a directory, in milliseconds since the UNIX epoch.
1513
pub fn dir_last_modified(dir: &fs::DirEntry) -> u128 {
1614
dir.metadata()
@@ -57,6 +55,7 @@ pub fn binary_cache_path() -> PathBuf {
5755
#[cfg(unix)]
5856
mod inner {
5957
pub use super::*;
58+
use is_terminal::IsTerminal as _;
6059

6160
/**
6261
Returns `true` if `rust-script` should force Cargo to use coloured output.

0 commit comments

Comments
 (0)