Skip to content

Commit db4c65e

Browse files
committed
clippy
1 parent 4ab11d5 commit db4c65e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

postgres-types/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ impl<'a> FromSql<'a> for SystemTime {
700700
let epoch = UNIX_EPOCH + Duration::from_secs(TIME_SEC_CONVERSION);
701701

702702
let negative = time < 0;
703-
let time = time.abs() as u64;
703+
let time = time.unsigned_abs();
704704

705705
let secs = time / USEC_PER_SEC;
706706
let nsec = (time % USEC_PER_SEC) * NSEC_PER_USEC;

0 commit comments

Comments
 (0)