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 {
13301330 }
13311331
13321332 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 ;
13341334 ( man & MAN_MASK ) | ( ( exp_u64 << 52 ) & EXP_MASK ) | ( ( sign_u64 << 63 ) & SIGN_MASK )
13351335}
13361336
Original file line number Diff line number Diff line change @@ -665,7 +665,7 @@ fn not_nan_panic_safety() {
665665 let catch_op = |mut num, op : fn ( & mut NotNan < _ > ) | {
666666 let mut num_ref = panic:: AssertUnwindSafe ( & mut num) ;
667667 #[ 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) ) ;
669669 num
670670 } ;
671671
You can’t perform that action at this time.
0 commit comments