summaryrefslogtreecommitdiff
path: root/src/sys/select.rs
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2020-05-31 15:17:16 -0600
committerAlan Somers <asomers@gmail.com>2020-05-31 19:07:15 -0600
commit1ae5dd8b16aed61958fd3ce488ed7fd459743652 (patch)
tree17c28555c9b2cd3db3741dcd28b7401d08ad3678 /src/sys/select.rs
parent84e66d7a29234d16d62c5fa5bc5b66ad5504c2a2 (diff)
downloadnix-1ae5dd8b16aed61958fd3ce488ed7fd459743652.zip
Convert the crate to edition 2018
Diffstat (limited to 'src/sys/select.rs')
-rw-r--r--src/sys/select.rs14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/sys/select.rs b/src/sys/select.rs
index a46985bc..a576c7e4 100644
--- a/src/sys/select.rs
+++ b/src/sys/select.rs
@@ -4,10 +4,10 @@ use std::ops::Range;
use std::os::unix::io::RawFd;
use std::ptr::{null, null_mut};
use libc::{self, c_int};
-use Result;
-use errno::Errno;
-use sys::signal::SigSet;
-use sys::time::{TimeSpec, TimeVal};
+use crate::Result;
+use crate::errno::Errno;
+use crate::sys::signal::SigSet;
+use crate::sys::time::{TimeSpec, TimeVal};
pub use libc::FD_SETSIZE;
@@ -49,7 +49,6 @@ impl FdSet {
/// # Example
///
/// ```
- /// # extern crate nix;
/// # use nix::sys::select::FdSet;
/// # fn main() {
/// let mut set = FdSet::new();
@@ -73,7 +72,6 @@ impl FdSet {
/// # Examples
///
/// ```
- /// # extern crate nix;
/// # use nix::sys::select::FdSet;
/// # use std::os::unix::io::RawFd;
/// let mut set = FdSet::new();
@@ -275,8 +273,8 @@ where
mod tests {
use super::*;
use std::os::unix::io::RawFd;
- use sys::time::{TimeVal, TimeValLike};
- use unistd::{write, pipe};
+ use crate::sys::time::{TimeVal, TimeValLike};
+ use crate::unistd::{write, pipe};
#[test]
fn fdset_insert() {