Fix some clippy::complexity
This commit is contained in:
parent
6fceb0f645
commit
81c320ea77
28 changed files with 62 additions and 63 deletions
|
@ -136,7 +136,9 @@ where
|
|||
}
|
||||
|
||||
fn iter(&self, f: &mut dyn FnMut(&Self::Key, &Self::Value, DepNodeIndex)) {
|
||||
self.cache.lock().as_ref().map(|value| f(&(), &value.0, value.1));
|
||||
if let Some(value) = self.cache.lock().as_ref() {
|
||||
f(&(), &value.0, value.1)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue