Skip to content

Commit 8713075

Browse files
authored
Merge pull request #1641 from tottoto/is-terminal
chore: replace is-terminal crate with std::io::IsTerminal
2 parents d65d31a + ad3c41c commit 8713075

File tree

5 files changed

+3
-24
lines changed

5 files changed

+3
-24
lines changed

Cargo.lock

Lines changed: 1 addition & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ name = "volta-migrate"
2121
path = "src/volta-migrate.rs"
2222

2323
[dependencies]
24-
is-terminal = "0.4.10"
2524
volta-core = { path = "crates/volta-core" }
2625
serde = { version = "1.0", features = ["derive"] }
2726
serde_json = "1.0.111"

crates/volta-core/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ dirs = "5.0.1"
4040
chrono = { version = "0.4.23", default-features = false, features = ["alloc", "std", "clock"] }
4141
validate-npm-package-name = { path = "../validate-npm-package-name" }
4242
textwrap = "0.16.0"
43-
is-terminal = "0.4.10"
4443
log = { version = "0.4", features = ["std"] }
4544
ctrlc = "3.4.2"
4645
walkdir = "2.4.0"

crates/volta-core/src/log.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
//! This module provides a custom Logger implementation for use with the `log` crate
22
use console::style;
3-
use is_terminal::IsTerminal;
43
use log::{Level, LevelFilter, Log, Metadata, Record, SetLoggerError};
54
use std::env;
65
use std::fmt::Display;
6+
use std::io::IsTerminal;
77
use textwrap::{fill, Options, WordSplitter};
88

99
use crate::style::text_width;

src/command/list/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ mod human;
22
mod plain;
33
mod toolchain;
44

5+
use std::io::IsTerminal as _;
56
use std::{fmt, path::PathBuf, str::FromStr};
67

7-
use is_terminal::IsTerminal as _;
88
use node_semver::Version;
99
use structopt::StructOpt;
1010

0 commit comments

Comments
 (0)