NFC: Address Clippy `redundant_closure`.

This commit is contained in:
Brian Smith 2023-08-30 16:22:46 -07:00
parent ca2472ec5f
commit 6d409c9039
2 changed files with 1 additions and 2 deletions

View File

@ -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 \

View File

@ -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) {