summaryrefslogtreecommitdiff
path: root/src/unistd.rs
diff options
context:
space:
mode:
authorarcnmx <arcnmx@users.noreply.github.com>2016-01-26 12:47:08 -0500
committerKamal Marhubi <kamal@marhubi.com>2016-01-28 00:46:19 -0500
commitf167e8f2f375961abd66c27ceb7f31c6fe659c81 (patch)
treeeb00067af46bd7ccc30ea73113350750b36333ea /src/unistd.rs
parent136bb454d98a9032843259e71f12d8e33cd90f27 (diff)
downloadnix-f167e8f2f375961abd66c27ceb7f31c6fe659c81.zip
Move errno::Result back to crate root
Diffstat (limited to 'src/unistd.rs')
-rw-r--r--src/unistd.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/unistd.rs b/src/unistd.rs
index f2c1fdce..a4e66618 100644
--- a/src/unistd.rs
+++ b/src/unistd.rs
@@ -1,7 +1,6 @@
//! Standard symbolic constants and types
//!
-use {NixPath, Error};
-use errno::{Errno, Result};
+use {Errno, Error, Result, NixPath};
use fcntl::{fcntl, OFlag, O_NONBLOCK, O_CLOEXEC, FD_CLOEXEC};
use fcntl::FcntlArg::{F_SETFD, F_SETFL};
use libc::{c_char, c_void, c_int, size_t, pid_t, off_t, uid_t, gid_t};
@@ -373,8 +372,7 @@ pub fn getegid() -> gid_t {
#[cfg(any(target_os = "linux", target_os = "android"))]
mod linux {
use sys::syscall::{syscall, SYSPIVOTROOT};
- use NixPath;
- use errno::{Errno, Result};
+ use {Errno, Result, NixPath};
#[cfg(feature = "execvpe")]
use std::ffi::CString;