Skip to content

Commit e309adb

Browse files
committed
chore: update serve to new WASI isatty API
Signed-off-by: Roman Volosatovs <[email protected]>
1 parent 23f1c77 commit e309adb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/commands/serve.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -840,10 +840,10 @@ impl wasmtime_wasi::p2::StdoutStream for LogStream {
840840
fn stream(&self) -> Box<dyn wasmtime_wasi::p2::OutputStream> {
841841
Box::new(self.clone())
842842
}
843+
}
843844

844-
fn isatty(&self) -> bool {
845-
use std::io::IsTerminal;
846-
845+
impl wasmtime_wasi::cli::IsTerminal for LogStream {
846+
fn is_terminal(&self) -> bool {
847847
match &self.output {
848848
Output::Stdout => std::io::stdout().is_terminal(),
849849
Output::Stderr => std::io::stderr().is_terminal(),

0 commit comments

Comments
 (0)