File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -932,7 +932,7 @@ impl Borrow<f64> for NotNan<f64> {
932
932
#[ allow( clippy:: derive_ord_xor_partial_ord) ]
933
933
impl < T : Float > Ord for NotNan < T > {
934
934
fn cmp ( & self , other : & NotNan < T > ) -> Ordering {
935
- match self . partial_cmp ( & other) {
935
+ match self . partial_cmp ( other) {
936
936
Some ( ord) => ord,
937
937
None => unsafe { unreachable_unchecked ( ) } ,
938
938
}
Original file line number Diff line number Diff line change @@ -665,7 +665,7 @@ fn not_nan_usage_in_const_context() {
665
665
fn not_nan_panic_safety ( ) {
666
666
let catch_op = |mut num, op : fn ( & mut NotNan < _ > ) | {
667
667
let mut num_ref = panic:: AssertUnwindSafe ( & mut num) ;
668
- let _ = panic:: catch_unwind ( move || op ( & mut * num_ref) ) ;
668
+ let _ = panic:: catch_unwind ( move || op ( * num_ref) ) ;
669
669
num
670
670
} ;
671
671
You can’t perform that action at this time.
0 commit comments