Skip to content

Commit

Permalink
chore: fix clippy warning emitted in rust-nightly job
Browse files Browse the repository at this point in the history
Signed-off-by: oleg.hoefling <[email protected]>
  • Loading branch information
hoefling committed Nov 16, 2024
1 parent 0793e74 commit eae74bf
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 eae74bf

Please sign in to comment.