mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
Fix typo
This commit is contained in:
@@ -478,7 +478,7 @@ pub fn wait_timeout_until<'a, T, F>(&self, mut guard: MutexGuard<'a, T>,
|
||||
if !condition(&*guard) {
|
||||
return Ok((guard, WaitTimeoutResult(false)));
|
||||
} else if dur == timed_out {
|
||||
return Ok((guard, WaitTimeoutResult(false)));
|
||||
return Ok((guard, WaitTimeoutResult(true)));
|
||||
}
|
||||
let wait_timer = Instant::now();
|
||||
let wait_result = self.wait_timeout(guard, dur)?;
|
||||
|
||||
Reference in New Issue
Block a user