Skip to content

Commit ea367d9

Browse files
remove paratheses
1 parent de77a32 commit ea367d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/time.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ impl Duration {
329329
pub const fn from_nanos_u128(nanos: u128) -> Duration {
330330
const NANOS_PER_SEC: u128 = self::NANOS_PER_SEC as u128;
331331
let secs: u128 = nanos / NANOS_PER_SEC;
332-
if (secs > u64::MAX.into()) {
332+
if secs > u64::MAX as u128 {
333333
panic!("overflow in duration in Duration::from_nanos_u128");
334334
}
335335
let subsec_nanos = (nanos % NANOS_PER_SEC) as u32;

0 commit comments

Comments
 (0)