Skip to content

Commit 6495963

Browse files
committed
fmt
1 parent 38609cd commit 6495963

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

library/core/src/time.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -1291,11 +1291,7 @@ macro_rules! try_from_secs {
12911291
// f32 does not have enough presicion to trigger the second branch
12921292
// since it can not represent numbers between 0.999_999_940_395 and 1.0.
12931293
let nanos = nanos + add_ns as u32;
1294-
if ($mant_bits == 23) || (nanos != NANOS_PER_SEC) {
1295-
(0, nanos)
1296-
} else {
1297-
(1, 0)
1298-
}
1294+
if ($mant_bits == 23) || (nanos != NANOS_PER_SEC) { (0, nanos) } else { (1, 0) }
12991295
} else if exp < $mant_bits {
13001296
let secs = u64::from(mant >> ($mant_bits - exp));
13011297
let t = <$double_ty>::from((mant << exp) & MANT_MASK);

0 commit comments

Comments
 (0)