Skip to content

Commit

Permalink
fixup to "Convert the crate to edition 2018"
Browse files Browse the repository at this point in the history
  • Loading branch information
asomers committed Jun 1, 2020
1 parent fb76c21 commit a777389
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/unistd.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//! Safe wrappers around functions found in libc "unistd.h" header
#[cfg(not(target_os = "redox"))]
use cfg_if::cfg_if;
use crate::errno::{self, Errno};
use crate::{Error, Result, NixPath};
Expand Down Expand Up @@ -1110,7 +1111,7 @@ pub fn pipe2(flags: OFlag) -> Result<(RawFd, RawFd)> {

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

let mut res = Ok(0);

Expand Down

0 comments on commit a777389

Please sign in to comment.