Skip to content

Commit

Permalink
Use not(unix) instead of windows for atty usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Jan 22, 2022
1 parent b4e3327 commit a0aaf9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/wasi-common/cap-std-sync/src/stdio.rs
Original file line number Diff line number Diff line change
@@ -113,7 +113,7 @@ impl WasiFile for Stdin {
{
rustix::io::isatty(&self.0)
}
#[cfg(windows)]
#[cfg(not(unix))]
{
atty::is(atty::Stream::Stdin)
}
@@ -233,7 +233,7 @@ macro_rules! wasi_file_write_impl {
{
rustix::io::isatty(&self.0)
}
#[cfg(windows)]
#[cfg(not(unix))]
{
atty::is(atty::Stream::$ident)
}

0 comments on commit a0aaf9f

Please sign in to comment.