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 ba07c83 commit 6e119c0Copy full SHA for 6e119c0
examples/linux-timerfd.rs
@@ -29,7 +29,7 @@ fn main() -> std::io::Result<()> {
29
// Safety: Assume `as_raw_fd()` returns a valid fd; when `AsFd`
30
// is stabilized, we can remove this unsafe and simplify.
31
let fd = unsafe { BorrowedFd::borrow_raw(t.as_raw_fd()) };
32
- rustix::io::read(&fd, &mut [0u8; 8]).map_err(io::Error::from)
+ rustix::io::read(fd, &mut [0u8; 8]).map_err(io::Error::from)
33
})
34
.await?;
35
Ok(())
0 commit comments