chore(clippy): sweep sweep sweep

This commit is contained in:
Rachel Powers
2024-05-18 04:28:30 -07:00
parent 29ef54ca04
commit b0bdc37a8a
10 changed files with 202 additions and 231 deletions

View File

@@ -140,9 +140,9 @@ fn write_enum_aggragate_mod<T: std::io::Write>(
.to_case(Case::Pascal);
let enum_name = listing.enum_name.to_case(Case::Pascal);
if index == 0 {
format!("{enum_name}::iter().map(|enm| Self::{variant_name}(enm))")
format!("{enum_name}::iter().map(Self::{variant_name})")
} else {
format!(".chain({enum_name}::iter().map(|enm| Self::{variant_name}(enm)))")
format!(".chain({enum_name}::iter().map(Self::{variant_name}))")
}
})
.collect::<Vec<_>>()