Skip to content

Commit

Permalink
chore: fix clippy warning emitted in rust-nightly job (#11965)
Browse files Browse the repository at this point in the history
Signed-off-by: oleg.hoefling <[email protected]>
  • Loading branch information
hoefling authored Nov 16, 2024
1 parent 0793e74 commit cb23110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rust/cryptography-x509-verification/src/policy/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit cb23110

Please sign in to comment.