From 24304a9f24cc59c2b8cb3e89ec8a883dcd98e74b Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Thu, 30 Jan 2020 21:14:54 +0900 Subject: [PATCH] cleanup unused import warning for macOS --- vm/src/stdlib/os.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vm/src/stdlib/os.rs b/vm/src/stdlib/os.rs index 0b10287a4..0c8056ec6 100644 --- a/vm/src/stdlib/os.rs +++ b/vm/src/stdlib/os.rs @@ -19,7 +19,7 @@ use nix::errno::Errno; #[cfg(all(unix, not(target_os = "redox")))] use nix::pty::openpty; #[cfg(unix)] -use nix::unistd::{self, Gid, Pid, Uid, Whence}; +use nix::unistd::{self, Gid, Pid, Uid}; #[cfg(unix)] use std::os::unix::io::RawFd; @@ -1446,8 +1446,8 @@ fn extend_module_platform_specific(vm: &VirtualMachine, module: PyObjectRef) -> ) ))] extend_module!(vm, module, { - "SEEK_DATA" => ctx.new_int(Whence::SeekData as i8), - "SEEK_HOLE" => ctx.new_int(Whence::SeekHole as i8) + "SEEK_DATA" => ctx.new_int(unistd::Whence::SeekData as i8), + "SEEK_HOLE" => ctx.new_int(unistd::Whence::SeekHole as i8) }); // cfg from nix #[cfg(any(