Fix clippy lint in serde_derive

This commit is contained in:
Lymia Aluysia 2019-01-15 11:35:26 -06:00
parent 7d3872df57
commit 8bbc2995ca
No known key found for this signature in database
GPG Key ID: DB2E204C989251F7

View File

@ -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);