Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Aug 24, 2024
1 parent b41b685 commit 16529b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/futex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ pub fn wake(uaddr: &AtomicU32, flags: Flags, val: u32) -> io::Result<usize> {
#[inline]
pub fn fd(uaddr: &AtomicU32, flags: Flags, val: u32) -> io::Result<OwnedFd> {
unsafe {
futex_val2(uaddr, Operation::Fd, flags, val, 0, ptr::null(), 0)
.map(|val| {
futex_val2(uaddr, Operation::Fd, flags, val, 0, ptr::null(), 0).map(|val| {
let fd = val as RawFd;
debug_assert_eq!(fd as usize, val, "return value should be a valid fd");
OwnedFd::from_raw_fd(fd)
Expand Down

0 comments on commit 16529b2

Please sign in to comment.