Skip to content

Commit

Permalink
Merge pull request #31 from sunfishcode/main
Browse files Browse the repository at this point in the history
Update to rustix 0.34.0.
  • Loading branch information
nagisa authored Mar 18, 2022
2 parents d77f575 + 748a088 commit 5a081a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ exclude = [

[dependencies]
# Private dependencies.
rustix = "0.33.0"
rustix = "0.34.0"

[package.metadata.release]
disable-publish = true
Expand Down
2 changes: 1 addition & 1 deletion src/memfd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,6 @@ fn is_memfd<F: AsRawFd>(fd: &F) -> bool {
// SAFETY: For now, we trust the file descriptor returned by `as_raw_fd()`
// 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(fd.as_raw_fd()) };
let fd = unsafe { rustix::fd::BorrowedFd::borrow_raw(fd.as_raw_fd()) };
rustix::fs::fcntl_get_seals(&fd).is_ok()
}

0 comments on commit 5a081a5

Please sign in to comment.