fix: new clippy warnings from rust 1.85.0 (#15203)

# Description
Mainly some cleanup of `map_or`.
This commit is contained in:
zc he
2025-02-27 21:11:47 +08:00
committed by GitHub
parent 12b8b4580c
commit 96af27fb4c
8 changed files with 21 additions and 26 deletions

View File

@ -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 {