Fix clippy issues

This commit is contained in:
andrzej.gluszak 2022-08-24 18:43:29 +02:00
parent dc696726cf
commit 73102b1e8e
36 changed files with 69 additions and 97 deletions

View file

@ -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);