From 0620918a30fe8d0d258617bd306758c302398ac3 Mon Sep 17 00:00:00 2001 From: Dean Li Date: Sun, 25 Apr 2021 10:31:16 +0800 Subject: [PATCH] os: Put `UtimeArgs` behind cfg gate --- vm/src/stdlib/os.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/vm/src/stdlib/os.rs b/vm/src/stdlib/os.rs index 4361500e2..4213115cf 100644 --- a/vm/src/stdlib/os.rs +++ b/vm/src/stdlib/os.rs @@ -1029,6 +1029,7 @@ mod _os { fs::hard_link(src.path, dst.path).map_err(|err| err.into_pyexception(vm)) } + #[cfg(not(target_os = "wasi"))] #[derive(FromArgs)] struct UtimeArgs { #[pyarg(any)]