Skip to content

Commit 241239f

Browse files
tottotofornwall
authored andcommitted
Replace is-terminal with standard library
1 parent 1c88b28 commit 241239f

File tree

3 files changed

+1
-22
lines changed

3 files changed

+1
-22
lines changed

Cargo.lock

-18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

-3
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ toml = "0.8"
3535
[target.'cfg(windows)'.dependencies]
3636
winreg = "0.52"
3737

38-
[target.'cfg(unix)'.dependencies]
39-
is-terminal = "0.4.6"
40-
4138
[dev-dependencies]
4239
lazy_static = "1"
4340
scan-rules = "0.2"

src/platform.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub fn binary_cache_path() -> PathBuf {
5454

5555
#[cfg(unix)]
5656
mod inner {
57-
use is_terminal::IsTerminal as _;
57+
use std::io::IsTerminal as _;
5858

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

0 commit comments

Comments
 (0)