From 6495963d5a2d3e36ce799cfb932aa1a4b080f262 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=9F=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=20=5BArtyom=20Pavlov=5D?= Date: Fri, 27 May 2022 05:15:22 +0300 Subject: [PATCH] fmt --- library/core/src/time.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/library/core/src/time.rs b/library/core/src/time.rs index 6983f10df3f..d653f715f6d 100644 --- a/library/core/src/time.rs +++ b/library/core/src/time.rs @@ -1291,11 +1291,7 @@ macro_rules! try_from_secs { // f32 does not have enough presicion to trigger the second branch // since it can not represent numbers between 0.999_999_940_395 and 1.0. let nanos = nanos + add_ns as u32; - if ($mant_bits == 23) || (nanos != NANOS_PER_SEC) { - (0, nanos) - } else { - (1, 0) - } + if ($mant_bits == 23) || (nanos != NANOS_PER_SEC) { (0, nanos) } else { (1, 0) } } else if exp < $mant_bits { let secs = u64::from(mant >> ($mant_bits - exp)); let t = <$double_ty>::from((mant << exp) & MANT_MASK);