Skip to content

Fix unresolved import #92

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/platform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ use std::fs;
use std::path::PathBuf;
use std::time::{SystemTime, UNIX_EPOCH};

use is_terminal::IsTerminal as _;

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

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