Skip to content

Commit

Permalink
Remove unnecessary explicit lifetime.
Browse files Browse the repository at this point in the history
  • Loading branch information
deivse committed Jan 29, 2025
1 parent 2b7a80c commit 77ece87
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 @@ -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)) => {
Expand Down

0 comments on commit 77ece87

Please # to comment.