applied some clippy fixes

This commit is contained in:
Tim 'Piepmatz' Hesse 2024-06-01 23:03:59 +02:00
parent cdc90d553c
commit 3154c0fa3a

View File

@ -89,7 +89,9 @@ fn struct_expected_type(fields: &Fields) -> TokenStream2 {
});
let mut template = String::new();
template.push('[');
iter.next().map(|_| template.push_str("{}"));
if iter.next().is_some() {
template.push_str("{}")
}
iter.for_each(|_| template.push_str(", {}"));
template.push(']');
quote! {