We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f720869 commit d363fafCopy full SHA for d363faf
src/lib.rs
@@ -27,10 +27,10 @@
27
28
#![cfg_attr(unix, no_std)]
29
30
-#[cfg(not(any(windows, target_os = "unknown")))]
+#[cfg(not(any(windows, target_os = "hermit", target_os = "unknown")))]
31
use rustix::fd::AsFd;
32
#[cfg(target_os = "hermit")]
33
-use std::os::hermit::io::AsRawFd;
+use std::os::hermit::io::AsFd;
34
#[cfg(windows)]
35
use std::os::windows::io::{AsHandle, AsRawHandle, BorrowedHandle};
36
@@ -80,7 +80,8 @@ impl<Stream: AsFd> IsTerminal for Stream {
80
81
82
{
83
- hermit_abi::isatty(self.as_fd().as_raw_fd())
+ use std::os::hermit::io::AsRawFd;
84
+ hermit_abi::isatty(self.as_fd().as_fd().as_raw_fd())
85
}
86
87
0 commit comments