applied some clippy fixes
This commit is contained in:
parent
cdc90d553c
commit
3154c0fa3a
|
@ -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! {
|
||||
|
|
Loading…
Reference in New Issue
Block a user