1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
Index: anstream/Cargo.toml
===================================================================
--- anstream.orig/Cargo.toml
+++ anstream/Cargo.toml
@@ -115,9 +115,6 @@ optional = true
[dependencies.colorchoice]
version = "1.0.0"
-[dependencies.is_terminal_polyfill]
-version = "1.48"
-
[dependencies.utf8parse]
version = "0.2.1"
Index: anstream/src/stream.rs
===================================================================
--- anstream.orig/src/stream.rs
+++ anstream/src/stream.rs
@@ -50,14 +50,14 @@ pub trait IsTerminal: private::Sealed {
impl IsTerminal for std::io::Stdout {
#[inline]
fn is_terminal(&self) -> bool {
- is_terminal_polyfill::IsTerminal::is_terminal(self)
+ std::io::IsTerminal::is_terminal(self)
}
}
impl IsTerminal for std::io::StdoutLock<'_> {
#[inline]
fn is_terminal(&self) -> bool {
- is_terminal_polyfill::IsTerminal::is_terminal(self)
+ std::io::IsTerminal::is_terminal(self)
}
}
@@ -71,14 +71,14 @@ impl IsTerminal for &'_ mut std::io::Std
impl IsTerminal for std::io::Stderr {
#[inline]
fn is_terminal(&self) -> bool {
- is_terminal_polyfill::IsTerminal::is_terminal(self)
+ std::io::IsTerminal::is_terminal(self)
}
}
impl IsTerminal for std::io::StderrLock<'_> {
#[inline]
fn is_terminal(&self) -> bool {
- is_terminal_polyfill::IsTerminal::is_terminal(self)
+ std::io::IsTerminal::is_terminal(self)
}
}
@@ -120,7 +120,7 @@ impl IsTerminal for &'_ mut Vec<u8> {
impl IsTerminal for std::fs::File {
#[inline]
fn is_terminal(&self) -> bool {
- is_terminal_polyfill::IsTerminal::is_terminal(self)
+ std::io::IsTerminal::is_terminal(self)
}
}
|