mirror of
https://github.com/nushell/nushell.git
synced 2025-07-01 07:00:37 +02:00
fix: new clippy warnings from rust 1.85.0 (#15203)
# Description Mainly some cleanup of `map_or`.
This commit is contained in:
@ -2817,7 +2817,7 @@ pub const DURATION_UNIT_GROUPS: &[UnitGroup] = &[
|
||||
fn modf(x: f64) -> (f64, f64) {
|
||||
let rv2: f64;
|
||||
let mut u = x.to_bits();
|
||||
let e = ((u >> 52 & 0x7ff) as i32) - 0x3ff;
|
||||
let e = (((u >> 52) & 0x7ff) as i32) - 0x3ff;
|
||||
|
||||
/* no fractional part */
|
||||
if e >= 52 {
|
||||
|
Reference in New Issue
Block a user