From 36ab937e53e8157ea7f8486f5e4c5f5f7ecb4eaf Mon Sep 17 00:00:00 2001 From: Padraic Fanning Date: Tue, 3 May 2022 20:14:55 -0400 Subject: [PATCH] Avoid unused import error on wasi and redox --- stdlib/src/fcntl.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stdlib/src/fcntl.rs b/stdlib/src/fcntl.rs index 639c355ec..502071a09 100644 --- a/stdlib/src/fcntl.rs +++ b/stdlib/src/fcntl.rs @@ -8,7 +8,6 @@ mod fcntl { stdlib::{io, os}, PyResult, VirtualMachine, }; - use std::mem; // TODO: supply these from (please file an issue/PR upstream): // LOCK_MAND, LOCK_READ, LOCK_WRITE, LOCK_RW, F_GETSIG, F_SETSIG, F_GETLK64, F_SETLK64, @@ -164,7 +163,7 @@ mod fcntl { whence: OptionalArg, vm: &VirtualMachine, ) -> PyResult { - let mut l: libc::flock = unsafe { mem::zeroed() }; + let mut l: libc::flock = unsafe { std::mem::zeroed() }; if cmd == libc::LOCK_UN { l.l_type = libc::F_UNLCK .try_into()