mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-23 08:18:03 +00:00
Fix clippy lint in serde_derive
This commit is contained in:
@@ -2004,7 +2004,7 @@ fn deserialize_identifier(
|
||||
) -> Fragment {
|
||||
let mut flat_fields = Vec::new();
|
||||
for &(_, ref ident, ref aliases) in fields {
|
||||
flat_fields.extend(aliases.into_iter().map(|alias| (alias, ident)))
|
||||
flat_fields.extend(aliases.iter().map(|alias| (alias, ident)))
|
||||
}
|
||||
|
||||
let field_strs = flat_fields.iter().map(|&(ref name, _)| name);
|
||||
|
||||
Reference in New Issue
Block a user