We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba12cb5 commit 158a3aeCopy full SHA for 158a3ae
tests/test.rs
@@ -665,7 +665,8 @@ fn not_nan_usage_in_const_context() {
665
fn not_nan_panic_safety() {
666
let catch_op = |mut num, op: fn(&mut NotNan<_>)| {
667
let mut num_ref = panic::AssertUnwindSafe(&mut num);
668
- let _ = panic::catch_unwind(move || op(*num_ref));
+ #[allow(clippy::needless_borrow)] // mut-borrow needed for msrv 1.36.0
669
+ let _ = panic::catch_unwind(move || op(&mut *num_ref));
670
num
671
};
672
0 commit comments