Skip to content

Commit 7321f53

Browse files
committed
fmt
1 parent c0fd0ca commit 7321f53

File tree

1 file changed

+2
-5
lines changed
  • library/std/src/sys/pal/wasm/atomics

1 file changed

+2
-5
lines changed

library/std/src/sys/pal/wasm/atomics/futex.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@ use crate::time::Duration;
1414
pub fn futex_wait(futex: &AtomicU32, expected: u32, timeout: Option<Duration>) -> bool {
1515
let timeout = timeout.and_then(|t| t.as_nanos().try_into().ok()).unwrap_or(-1);
1616
unsafe {
17-
wasm::memory_atomic_wait32(
18-
futex as *const AtomicU32 as *mut i32,
19-
expected as i32,
20-
timeout,
21-
) < 2
17+
wasm::memory_atomic_wait32(futex as *const AtomicU32 as *mut i32, expected as i32, timeout)
18+
< 2
2219
}
2320
}
2421

0 commit comments

Comments
 (0)