mirror of https://github.com/zkat/miette.git
fix(clippy): 1.59.0 clippy fix
This commit is contained in:
parent
50bcec909a
commit
fa5b5fee54
|
|
@ -48,13 +48,12 @@ pub(crate) fn gen_all_variants_with(
|
|||
) -> Option<TokenStream> {
|
||||
let pairs = variants
|
||||
.iter()
|
||||
.map(|def| {
|
||||
.filter_map(|def| {
|
||||
def.args
|
||||
.forward_or_override_enum(&def.ident, which_fn, |concrete| {
|
||||
f(&def.ident, &def.fields, concrete)
|
||||
})
|
||||
})
|
||||
.flatten()
|
||||
.collect::<Vec<_>>();
|
||||
if pairs.is_empty() {
|
||||
return None;
|
||||
|
|
|
|||
Loading…
Reference in New Issue