We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a64a491 commit ba07c83Copy full SHA for ba07c83
src/lib.rs
@@ -606,8 +606,8 @@ impl<T: AsRawFd> Async<T> {
606
// `AsFd` is stabilized and `TimerFd` implements it, we can
607
// remove this unsafe and simplify this.
608
let fd = unsafe { rustix::fd::BorrowedFd::borrow_raw(raw) };
609
- let flags = rustix::fs::fcntl_getfl(&fd)?;
610
- rustix::fs::fcntl_setfl(&fd, flags | rustix::fs::OFlags::NONBLOCK)?;
+ let flags = rustix::fs::fcntl_getfl(fd)?;
+ rustix::fs::fcntl_setfl(fd, flags | rustix::fs::OFlags::NONBLOCK)?;
611
612
Ok(Async {
613
source: Reactor::get().insert_io(raw)?,
0 commit comments