Skip to content

Commit 9da8f56

Browse files
committed
Fix tests on main
1 parent 34a4bc7 commit 9da8f56

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

crates/gen-host-wasmtime-rust/tests/runtime.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,11 @@ impl testwasi::Testwasi for TestWasi {
100100
Ok(())
101101
}
102102

103-
fn log_err(&mut self, bytes: Vec<u8>) {
103+
fn log_err(&mut self, bytes: Vec<u8>) -> Result<()> {
104104
match std::str::from_utf8(&bytes) {
105105
Ok(s) => eprint!("{}", s),
106106
Err(_) => eprintln!("\nbinary: {:?}", bytes),
107107
}
108+
Ok(())
108109
}
109110
}

0 commit comments

Comments
 (0)