Skip to content

Commit 36ab937

Browse files
committed
Avoid unused import error on wasi and redox
1 parent 46a0dea commit 36ab937

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

stdlib/src/fcntl.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ mod fcntl {
88
stdlib::{io, os},
99
PyResult, VirtualMachine,
1010
};
11-
use std::mem;
1211

1312
// TODO: supply these from <asm-generic/fnctl.h> (please file an issue/PR upstream):
1413
// LOCK_MAND, LOCK_READ, LOCK_WRITE, LOCK_RW, F_GETSIG, F_SETSIG, F_GETLK64, F_SETLK64,
@@ -164,7 +163,7 @@ mod fcntl {
164163
whence: OptionalArg<i32>,
165164
vm: &VirtualMachine,
166165
) -> PyResult {
167-
let mut l: libc::flock = unsafe { mem::zeroed() };
166+
let mut l: libc::flock = unsafe { std::mem::zeroed() };
168167
if cmd == libc::LOCK_UN {
169168
l.l_type = libc::F_UNLCK
170169
.try_into()

0 commit comments

Comments
 (0)