Skip to content

Commit

Permalink
NFC: Address Clippy redundant_closure.
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith committed Aug 31, 2023
1 parent ca2472e commit 6d409c9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion mk/clippy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ cargo clippy \
--allow clippy::explicit_auto_deref \
--allow clippy::len_without_is_empty \
--allow clippy::new_without_default \
--allow clippy::redundant_closure \
--allow clippy::single_match \
--allow clippy::single_match_else \
--allow clippy::too_many_arguments \
Expand Down
2 changes: 1 addition & 1 deletion src/name/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ fn check_presented_id_conforms_to_constraints_in_subtree(
input: &mut untrusted::Reader<'b>,
) -> Result<GeneralName<'b>, Error> {
let general_subtree = der::expect_tag_and_get_value(input, der::Tag::Sequence)?;
general_subtree.read_all(Error::BadDer, |subtree| general_name(subtree))
general_subtree.read_all(Error::BadDer, general_name)
}

let base = match general_subtree(&mut constraints) {
Expand Down

0 comments on commit 6d409c9

Please sign in to comment.