diff --git a/mk/clippy.sh b/mk/clippy.sh index 0184e158..36896bef 100755 --- a/mk/clippy.sh +++ b/mk/clippy.sh @@ -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 \ diff --git a/src/name/verify.rs b/src/name/verify.rs index 6082c19e..44691f9a 100644 --- a/src/name/verify.rs +++ b/src/name/verify.rs @@ -152,7 +152,7 @@ fn check_presented_id_conforms_to_constraints_in_subtree( input: &mut untrusted::Reader<'b>, ) -> Result, 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) {