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> {
932932#[ allow( clippy:: derive_ord_xor_partial_ord) ]
933933impl < T : Float > Ord for NotNan < T > {
934934 fn cmp ( & self , other : & NotNan < T > ) -> Ordering {
935- match self . partial_cmp ( & other) {
935+ match self . partial_cmp ( other) {
936936 Some ( ord) => ord,
937937 None => unsafe { unreachable_unchecked ( ) } ,
938938 }
Original file line number Diff line number Diff line change @@ -665,7 +665,7 @@ fn not_nan_usage_in_const_context() {
665665fn not_nan_panic_safety ( ) {
666666 let catch_op = |mut num, op : fn ( & mut NotNan < _ > ) | {
667667 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) ) ;
669669 num
670670 } ;
671671
You can’t perform that action at this time.
0 commit comments