Skip to content

Commit

Permalink
Fix more clippy lints.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Nov 11, 2022
1 parent ba07c83 commit 6e119c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/linux-timerfd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fn main() -> std::io::Result<()> {
// Safety: Assume `as_raw_fd()` returns a valid fd; when `AsFd`
// is stabilized, we can remove this unsafe and simplify.
let fd = unsafe { BorrowedFd::borrow_raw(t.as_raw_fd()) };
rustix::io::read(&fd, &mut [0u8; 8]).map_err(io::Error::from)
rustix::io::read(fd, &mut [0u8; 8]).map_err(io::Error::from)
})
.await?;
Ok(())
Expand Down

0 comments on commit 6e119c0

Please sign in to comment.