From 5dae7aacdadbebc57b603ee56c1ed289de82f9ce Mon Sep 17 00:00:00 2001 From: Dean Li Date: Mon, 5 Apr 2021 11:13:39 +0800 Subject: [PATCH] Remove vm in path_from_fd --- vm/src/stdlib/os.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/src/stdlib/os.rs b/vm/src/stdlib/os.rs index f540b4428e..c053cda610 100644 --- a/vm/src/stdlib/os.rs +++ b/vm/src/stdlib/os.rs @@ -170,7 +170,7 @@ fn path_from_fd(raw_fd: i64) -> Result { }; Ok(path) } else { - Err(vm.new_os_error("fd not supported on wasi yet".to_owned())); + Err("fd not supported on wasi yet"); } } }