From 145c704e049f75372ec60c4be78d66d0367f882f Mon Sep 17 00:00:00 2001 From: Brian Hession Date: Wed, 25 Oct 2023 13:02:16 -0400 Subject: [PATCH] Fixed clippy error --- x509-ocsp/src/basic.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x509-ocsp/src/basic.rs b/x509-ocsp/src/basic.rs index 80847486f..33dffd9fd 100644 --- a/x509-ocsp/src/basic.rs +++ b/x509-ocsp/src/basic.rs @@ -213,7 +213,7 @@ impl From for RevokedInfo { Self { revocation_time: match rc.revocation_date { Time::UtcTime(t) => GeneralizedTime::from_date_time(t.to_date_time()), - Time::GeneralTime(t) => t.clone(), + Time::GeneralTime(t) => t, }, revocation_reason: if let Some(extensions) = &rc.crl_entry_extensions { let mut filter = extensions @@ -238,7 +238,7 @@ impl From<&RevokedCert> for RevokedInfo { Self { revocation_time: match rc.revocation_date { Time::UtcTime(t) => GeneralizedTime::from_date_time(t.to_date_time()), - Time::GeneralTime(t) => t.clone(), + Time::GeneralTime(t) => t, }, revocation_reason: if let Some(extensions) = &rc.crl_entry_extensions { let mut filter = extensions