Skip to content

Commit d821ccc

Browse files
committed
Get rid of is-terminal dependency as our MSRV is already > v1.70
1 parent 88ee817 commit d821ccc

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

spdlog/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ crossbeam = { version = "0.8.2", optional = true }
5555
dyn-clone = "1.0.14"
5656
env_filter = { version = "0.1.0", optional = true }
5757
flexible-string = { version = "0.1.0", optional = true }
58-
is-terminal = "0.4"
5958
log = { version = "0.4.21", optional = true, features = ["kv"] }
6059
once_cell = "1.16.0"
6160
parking_lot = "0.12.0"

spdlog/src/sink/std_stream_sink.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
use std::{
44
convert::Infallible,
5-
io::{self, Write},
5+
io::{self, IsTerminal as _, Write},
66
// Import `str` module for function `std::str::from_utf8`, because method `str::from_utf8` is
77
// stabilized since Rust 1.87.
88
//
@@ -188,7 +188,6 @@ impl StdStreamSink {
188188

189189
#[must_use]
190190
fn should_render_style(style_mode: StyleMode, stream: StdStream) -> bool {
191-
use is_terminal::IsTerminal;
192191
let is_terminal = match stream {
193192
StdStream::Stdout => io::stdout().is_terminal(),
194193
StdStream::Stderr => io::stderr().is_terminal(),

0 commit comments

Comments
 (0)