Skip to content

Commit 6e119c0

Browse files
committed
Fix more clippy lints.
1 parent ba07c83 commit 6e119c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/linux-timerfd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fn main() -> std::io::Result<()> {
2929
// Safety: Assume `as_raw_fd()` returns a valid fd; when `AsFd`
3030
// is stabilized, we can remove this unsafe and simplify.
3131
let fd = unsafe { BorrowedFd::borrow_raw(t.as_raw_fd()) };
32-
rustix::io::read(&fd, &mut [0u8; 8]).map_err(io::Error::from)
32+
rustix::io::read(fd, &mut [0u8; 8]).map_err(io::Error::from)
3333
})
3434
.await?;
3535
Ok(())

0 commit comments

Comments
 (0)