Skip to content

Commit c690633

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/commands/serve.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,8 +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+
impl wasmtime_wasi::cli::IsTerminal for LogStream {
846+
fn is_terminal(&self) -> bool {
845847
use std::io::IsTerminal;
846848

847849
match &self.output {

0 commit comments

Comments
 (0)