Skip to content

Commit a777389

Browse files
committed
fixup to "Convert the crate to edition 2018"
1 parent fb76c21 commit a777389

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/unistd.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//! Safe wrappers around functions found in libc "unistd.h" header
22
3+
#[cfg(not(target_os = "redox"))]
34
use cfg_if::cfg_if;
45
use crate::errno::{self, Errno};
56
use crate::{Error, Result, NixPath};
@@ -1110,7 +1111,7 @@ pub fn pipe2(flags: OFlag) -> Result<(RawFd, RawFd)> {
11101111

11111112
#[cfg(any(target_os = "ios", target_os = "macos"))]
11121113
fn pipe2_setflags(fd1: RawFd, fd2: RawFd, flags: OFlag) -> Result<()> {
1113-
use fcntl::FcntlArg::F_SETFL;
1114+
use crate::fcntl::FcntlArg::F_SETFL;
11141115

11151116
let mut res = Ok(0);
11161117

0 commit comments

Comments
 (0)