diff --git a/src/futex.rs b/src/futex.rs index d9c34088e..e2b36b01d 100644 --- a/src/futex.rs +++ b/src/futex.rs @@ -107,8 +107,7 @@ pub fn wake(uaddr: &AtomicU32, flags: Flags, val: u32) -> io::Result { #[inline] pub fn fd(uaddr: &AtomicU32, flags: Flags, val: u32) -> io::Result { 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)