mirror of https://github.com/briansmith/webpki
NFC: Address Clippy `redundant_closure`.
This commit is contained in:
parent
ca2472ec5f
commit
6d409c9039
|
@ -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 \
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue