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/sys/sendfile.rs | |
parent | 84e66d7a29234d16d62c5fa5bc5b66ad5504c2a2 (diff) | |
download | nix-1ae5dd8b16aed61958fd3ce488ed7fd459743652.zip |
Convert the crate to edition 2018
Diffstat (limited to 'src/sys/sendfile.rs')
-rw-r--r-- | src/sys/sendfile.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/sys/sendfile.rs b/src/sys/sendfile.rs index 1618558a..84fe2a91 100644 --- a/src/sys/sendfile.rs +++ b/src/sys/sendfile.rs @@ -1,10 +1,11 @@ +use cfg_if::cfg_if; use std::os::unix::io::RawFd; use std::ptr; use libc::{self, off_t}; -use Result; -use errno::Errno; +use crate::Result; +use crate::errno::Errno; /// Copy up to `count` bytes to `out_fd` from `in_fd` starting at `offset`. /// @@ -36,7 +37,7 @@ cfg_if! { if #[cfg(any(target_os = "freebsd", target_os = "ios", target_os = "macos"))] { - use sys::uio::IoVec; + use crate::sys::uio::IoVec; #[derive(Clone, Debug, Eq, Hash, PartialEq)] struct SendfileHeaderTrailer<'a>( |