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 bf02180 commit b524b16Copy full SHA for b524b16
src/cancellable_timer.rs
@@ -41,7 +41,7 @@ impl CancellableTimer {
41
*self.cancelled.lock().unwrap() = false;
42
}
43
44
- pub fn wait(&self) -> Option<TimerGuard> {
+ pub fn wait(&self) -> Option<TimerGuard<'_>> {
45
let start_lock = self.start.lock().unwrap();
46
let elapsed = start_lock.elapsed();
47
let duration_to_go = self.duration.saturating_sub(elapsed);
0 commit comments