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:
@@ -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