From db4c65e884253c700d7de363b629500f3ebc80eb Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Tue, 5 Jul 2022 07:26:32 -0400 Subject: [PATCH] clippy --- postgres-types/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgres-types/src/lib.rs b/postgres-types/src/lib.rs index 833d8a10..c1435030 100644 --- a/postgres-types/src/lib.rs +++ b/postgres-types/src/lib.rs @@ -700,7 +700,7 @@ impl<'a> FromSql<'a> for SystemTime { let epoch = UNIX_EPOCH + Duration::from_secs(TIME_SEC_CONVERSION); let negative = time < 0; - let time = time.abs() as u64; + let time = time.unsigned_abs(); let secs = time / USEC_PER_SEC; let nsec = (time % USEC_PER_SEC) * NSEC_PER_USEC;