We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 255795e commit cea72b8Copy full SHA for cea72b8
src/interface.rs
@@ -48,7 +48,7 @@ fn enable_logs() {
48
// For getting a message from a panic
49
thread_local! {
50
// Stores (Message, File, Line)
51
- static PANIC_INFO: RefCell<Option<(String, String, u32)>> = RefCell::new(None);
+ static PANIC_INFO: RefCell<Option<(String, String, u32)>> = const { RefCell::new(None) };
52
}
53
54
/// Initialize the panic handler to catch panics and store the message, file, and line number in `PANIC_INFO`.
0 commit comments