We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38609cd commit 6495963Copy full SHA for 6495963
library/core/src/time.rs
@@ -1291,11 +1291,7 @@ macro_rules! try_from_secs {
1291
// f32 does not have enough presicion to trigger the second branch
1292
// since it can not represent numbers between 0.999_999_940_395 and 1.0.
1293
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
- }
+ if ($mant_bits == 23) || (nanos != NANOS_PER_SEC) { (0, nanos) } else { (1, 0) }
1299
} else if exp < $mant_bits {
1300
let secs = u64::from(mant >> ($mant_bits - exp));
1301
let t = <$double_ty>::from((mant << exp) & MANT_MASK);
0 commit comments