mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
chore: Clippy lints and compile fixes.
This commit is contained in:
@@ -574,8 +574,7 @@ impl PeerDiscovery {
|
||||
let wakeup_end = Instant::now();
|
||||
|
||||
let epsilon = Duration::from_millis(200);
|
||||
let sleep_was_instant = wakeup_end - wakeup_start <= epsilon;
|
||||
sleep_was_instant
|
||||
wakeup_end - wakeup_start <= epsilon
|
||||
}
|
||||
|
||||
fn notify(&self) {
|
||||
|
||||
@@ -72,6 +72,12 @@ impl CondVar {
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for CondVar {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
pub struct CondVarWait<'a> {
|
||||
state: &'a Mutex<CondVarState>,
|
||||
}
|
||||
|
||||
@@ -91,3 +91,9 @@ impl<Parent> LazyWeak<Parent> {
|
||||
self.0.get().unwrap().upgrade().unwrap()
|
||||
}
|
||||
}
|
||||
|
||||
impl<Parent> Default for LazyWeak<Parent> {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user