Skip to content

Commit ba07c83

Browse files
committed
Fix clippy lints.
1 parent a64a491 commit ba07c83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,8 +606,8 @@ impl<T: AsRawFd> Async<T> {
606606
// `AsFd` is stabilized and `TimerFd` implements it, we can
607607
// remove this unsafe and simplify this.
608608
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)?;
609+
let flags = rustix::fs::fcntl_getfl(fd)?;
610+
rustix::fs::fcntl_setfl(fd, flags | rustix::fs::OFlags::NONBLOCK)?;
611611

612612
Ok(Async {
613613
source: Reactor::get().insert_io(raw)?,

0 commit comments

Comments
 (0)