diff options
author | Alan Somers <asomers@gmail.com> | 2020-05-31 15:17:16 -0600 |
---|---|---|
committer | Alan Somers <asomers@gmail.com> | 2020-05-31 19:07:15 -0600 |
commit | 1ae5dd8b16aed61958fd3ce488ed7fd459743652 (patch) | |
tree | 17c28555c9b2cd3db3741dcd28b7401d08ad3678 /src/fcntl.rs | |
parent | 84e66d7a29234d16d62c5fa5bc5b66ad5504c2a2 (diff) | |
download | nix-1ae5dd8b16aed61958fd3ce488ed7fd459743652.zip |
Convert the crate to edition 2018
Diffstat (limited to 'src/fcntl.rs')
-rw-r--r-- | src/fcntl.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/fcntl.rs b/src/fcntl.rs index 06b79e44..ea036427 100644 --- a/src/fcntl.rs +++ b/src/fcntl.rs @@ -1,17 +1,17 @@ -use errno::Errno; +use crate::errno::Errno; use libc::{self, c_char, c_int, c_uint, size_t, ssize_t}; use std::ffi::OsString; #[cfg(not(target_os = "redox"))] use std::os::raw; use std::os::unix::ffi::OsStringExt; use std::os::unix::io::RawFd; -use sys::stat::Mode; -use {NixPath, Result}; +use crate::sys::stat::Mode; +use crate::{NixPath, Result}; #[cfg(any(target_os = "android", target_os = "linux"))] use std::ptr; // For splice and copy_file_range #[cfg(any(target_os = "android", target_os = "linux"))] -use sys::uio::IoVec; // For vmsplice +use crate::sys::uio::IoVec; // For vmsplice #[cfg(any( target_os = "linux", @@ -586,10 +586,10 @@ pub fn fallocate( target_env = "freebsd" ))] mod posix_fadvise { - use errno::Errno; + use crate::errno::Errno; use libc; use std::os::unix::io::RawFd; - use Result; + use crate::Result; libc_enum! { #[repr(i32)] |