mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-08-04 19:08:32 +00:00
Fix clippy issues
This commit is contained in:
parent
dc696726cf
commit
73102b1e8e
36 changed files with 69 additions and 97 deletions
|
@ -46,7 +46,7 @@ impl<T> WithValue<T> for Cell<T> {
|
|||
fn with_value<R>(&self, value: T, closure: impl FnOnce() -> R) -> R {
|
||||
let old_value = self.replace(value);
|
||||
|
||||
let result = catch_unwind(AssertUnwindSafe(|| closure()));
|
||||
let result = catch_unwind(AssertUnwindSafe(closure));
|
||||
|
||||
self.set(old_value);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue