From 4548c173ac434b70d141053e2069cd1738622cb2 Mon Sep 17 00:00:00 2001 From: Matthew Russo Date: Sun, 8 Dec 2024 18:39:02 -0800 Subject: [PATCH] [Fix] add clippy allow in new panic-hook scaffolding --- proptest/src/test_runner/scoped_panic_hook.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/proptest/src/test_runner/scoped_panic_hook.rs b/proptest/src/test_runner/scoped_panic_hook.rs index 63183fbd..2171e61f 100644 --- a/proptest/src/test_runner/scoped_panic_hook.rs +++ b/proptest/src/test_runner/scoped_panic_hook.rs @@ -64,6 +64,7 @@ mod internal { return; } + #[allow(static_mut_refs)] if let Some(hook) = unsafe { DEFAULT_HOOK.as_ref() } { (hook)(info); }