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 @@ -1330,7 +1330,7 @@ fn raw_double_bits<F: Float>(f: &F) -> u64 {
1330
1330
}
1331
1331
1332
1332
let exp_u64 = exp as u16 as u64 ;
1333
- let sign_u64 = if sign > 0 { 1u64 } else { 0u64 } ;
1333
+ let sign_u64 = ( sign > 0 ) as u64 ;
1334
1334
( man & MAN_MASK ) | ( ( exp_u64 << 52 ) & EXP_MASK ) | ( ( sign_u64 << 63 ) & SIGN_MASK )
1335
1335
}
1336
1336
Original file line number Diff line number Diff line change @@ -665,7 +665,7 @@ fn not_nan_panic_safety() {
665
665
let catch_op = |mut num, op : fn ( & mut NotNan < _ > ) | {
666
666
let mut num_ref = panic:: AssertUnwindSafe ( & mut num) ;
667
667
#[ allow( clippy:: needless_borrow) ] // mut-borrow needed for msrv 1.36.0
668
- let _ = panic:: catch_unwind ( move || op ( & mut * num_ref) ) ;
668
+ let _ = panic:: catch_unwind ( move || op ( & mut num_ref) ) ;
669
669
num
670
670
} ;
671
671
You can’t perform that action at this time.
0 commit comments