Skip to content

Commit

Permalink
feat(deps): Use std::io::IsTerminal instead of is-terminal. (#4)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This bumps the MSRV to 1.70.0
  • Loading branch information
Porges committed Feb 4, 2024
1 parent 77b5caa commit fb84fe6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,4 @@ documentation = "https://docs.rs/supports-hyperlinks"
license = "Apache-2.0"
readme = "README.md"
edition = "2021"

[dependencies]
is-terminal = "0.4.0"
rust-version = "1.70.0"
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub fn supports_hyperlinks() -> bool {
}

fn is_a_tty(stream: Stream) -> bool {
use is_terminal::*;
use std::io::IsTerminal;
match stream {
Stream::Stdout => std::io::stdout().is_terminal(),
Stream::Stderr => std::io::stderr().is_terminal(),
Expand Down

0 comments on commit fb84fe6

Please sign in to comment.