Skip to content

Commit 71d200c

Browse files
committed
Make the implementation match std.
Update the comments in the Windows implementation to reflect that this code matches what's in current std.
1 parent 1d5ebd6 commit 71d200c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ impl<Stream: AsHandle> IsTerminal for Stream {
9595
}
9696

9797
// The Windows implementation here is copied from `handle_is_console` in
98-
// std/src/sys/windows/io.rs in Rust at revision
99-
// d7b0bcb20f2f7d5f3ea3489d56ece630147e98f5.
98+
// library/std/src/sys/pal/windows/io.rs in Rust at revision
99+
// 99128b7e45f8b95d962da2e6ea584767f0c85455.
100100

101101
#[cfg(windows)]
102102
fn handle_is_console(handle: BorrowedHandle<'_>) -> bool {
@@ -138,8 +138,6 @@ fn handle_is_console(handle: BorrowedHandle<'_>) -> bool {
138138
}
139139

140140
/// Returns true if there is an MSYS tty on the given handle.
141-
///
142-
/// This incoproates d7b0bcb20f2f7d5f3ea3489d56ece630147e98f5
143141
#[cfg(windows)]
144142
unsafe fn msys_tty_on(handle: HANDLE) -> bool {
145143
use std::ffi::c_void;

0 commit comments

Comments
 (0)