Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
dimbleby committed Feb 23, 2024
1 parent 53a0a88 commit ba232b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/panic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::panic::{self, AssertUnwindSafe};

thread_local! {
static LAST_ERROR: RefCell<Option<Box<dyn Any + Send>>> = RefCell::new(None);
static UNWINDING: RefCell<bool> = RefCell::new(false);
static UNWINDING: RefCell<bool> = const { RefCell::new(false) }
}

pub fn catch<T, F: FnOnce() -> T>(f: F) -> Option<T> {
Expand Down

0 comments on commit ba232b7

Please sign in to comment.