Skip to content

Commit

Permalink
Fix a clippy lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Nov 7, 2022
1 parent 47dd2e7 commit aa726df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/memfd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,5 +248,5 @@ fn is_memfd<F: AsRawFd>(fd: &F) -> bool {
// is valid. Once `AsFd` is stabilized in std, we can use that instead of
// `AsRawFd`, and eliminate this `unsafe` block.
let fd = unsafe { rustix::fd::BorrowedFd::borrow_raw(fd.as_raw_fd()) };
rustix::fs::fcntl_get_seals(&fd).is_ok()
rustix::fs::fcntl_get_seals(fd).is_ok()
}

0 comments on commit aa726df

Please sign in to comment.