We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f75d02d commit 3cadc11Copy full SHA for 3cadc11
library/std/src/sys/unix/futex.rs
@@ -25,7 +25,7 @@ pub fn futex_wait(futex: &AtomicU32, expected: u32, timeout: Option<Duration>) -
25
//
26
// Overflows are rounded up to an infinite timeout (None).
27
let timespec = timeout
28
- .and_then(|d| Some(Timespec::now(libc::CLOCK_MONOTONIC).checked_add_duration(&d)?))
+ .and_then(|d| Timespec::now(libc::CLOCK_MONOTONIC).checked_add_duration(&d))
29
.and_then(|t| t.to_timespec());
30
31
loop {
0 commit comments