From eae74bfcafb2849a8f810581ec43c96334e7bcba Mon Sep 17 00:00:00 2001 From: "oleg.hoefling" Date: Sat, 16 Nov 2024 22:15:12 +0100 Subject: [PATCH] chore: fix clippy warning emitted in rust-nightly job Signed-off-by: oleg.hoefling --- 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 f124d17d3a69..2703e868dbde 100644 --- a/src/rust/cryptography-x509-verification/src/policy/mod.rs +++ b/src/rust/cryptography-x509-verification/src/policy/mod.rs @@ -183,7 +183,7 @@ impl Subject<'_> { DNSPattern::new(pattern.0).map_or(false, |p| p.matches(name)) } (GeneralName::IPAddress(addr), Self::IP(name)) => { - IPAddress::from_bytes(addr).map_or(false, |addr| addr == *name) + IPAddress::from_bytes(addr) == Some(*name) } _ => false, }