From 77ece8754bcb42e08d6285e32b3d306319f64241 Mon Sep 17 00:00:00 2001 From: Ivan Desiatov Date: Wed, 29 Jan 2025 15:36:48 +0100 Subject: [PATCH] Remove unnecessary explicit lifetime. --- src/rust/cryptography-x509-verification/src/policy/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rust/cryptography-x509-verification/src/policy/mod.rs b/src/rust/cryptography-x509-verification/src/policy/mod.rs index 3bbedc91cadb..e49133317b9a 100644 --- a/src/rust/cryptography-x509-verification/src/policy/mod.rs +++ b/src/rust/cryptography-x509-verification/src/policy/mod.rs @@ -179,7 +179,7 @@ pub enum Subject<'a> { IP(IPAddress), } -impl<'a> Subject<'a> { +impl Subject<'_> { fn subject_alt_name_matches(&self, general_name: &GeneralName<'_>) -> bool { match (general_name, self) { (GeneralName::DNSName(pattern), Self::DNS(name)) => {