Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
I agree to license my contributions to each file under the terms given at the top of each file I changed.
  • Loading branch information
stepancheg authored and briansmith committed Feb 17, 2021
1 parent 6ef1fdf commit db1f0d1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/name/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ fn check_presented_id_conforms_to_constraints_in_subtree(
dns_name::presented_id_matches_constraint(name, base).ok_or(Error::BadDER)
}

(GeneralName::DirectoryName(name), GeneralName::DirectoryName(base)) => {
presented_directory_name_matches_constraint(name, base, subtrees)
}
(GeneralName::DirectoryName(name), GeneralName::DirectoryName(base)) => Ok(
presented_directory_name_matches_constraint(name, base, subtrees),
),

(GeneralName::IPAddress(name), GeneralName::IPAddress(base)) => {
ip_address::presented_id_matches_constraint(name, base)
Expand Down Expand Up @@ -232,10 +232,10 @@ fn presented_directory_name_matches_constraint(
name: untrusted::Input,
constraint: untrusted::Input,
subtrees: Subtrees,
) -> Result<bool, Error> {
) -> bool {
match subtrees {
Subtrees::PermittedSubtrees => Ok(name == constraint),
Subtrees::ExcludedSubtrees => Ok(true),
Subtrees::PermittedSubtrees => name == constraint,
Subtrees::ExcludedSubtrees => true,
}
}

Expand Down

0 comments on commit db1f0d1

Please sign in to comment.