Resolve redundant_field_names lint in serde_derive

This commit is contained in:
David Tolnay
2020-04-05 21:02:37 -07:00
parent 1b35c9e27e
commit b6def5300a
6 changed files with 32 additions and 39 deletions
+2 -2
View File
@@ -156,7 +156,7 @@ pub fn with_bound(
.collect();
let mut visitor = FindTyParams {
all_type_params: all_type_params,
all_type_params,
relevant_type_params: HashSet::new(),
associated_type_usage: Vec::new(),
};
@@ -271,7 +271,7 @@ pub fn with_lifetime_bound(generics: &syn::Generics, lifetime: &str) -> syn::Gen
.collect();
syn::Generics {
params: params,
params,
..generics.clone()
}
}