From fa76edf7779050f52723de64f97600a5e7c86831 Mon Sep 17 00:00:00 2001 From: asonix Date: Tue, 22 Nov 2022 10:16:46 -0600 Subject: [PATCH] Remove unneded conversion --- src/verify.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/verify.rs b/src/verify.rs index 99080a4..a2e02d7 100644 --- a/src/verify.rs +++ b/src/verify.rs @@ -192,8 +192,7 @@ impl Unvalidated { if let Some(date) = self.date { if let Ok(datetime) = date.parse::() { let system_time = SystemTime::from(datetime); - let datetime: SystemTime = system_time.into(); - if datetime + expires_after < self.parsed_at { + if system_time + expires_after < self.parsed_at { return Err(ValidateError::Expired); } }