Simplify the trait paths used in bounds

This commit is contained in:
David Tolnay 2017-01-12 21:24:51 -08:00
parent 3951ef91c0
commit 506c8cc087
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ fn build_impl_generics(item: &Item) -> syn::Generics {
None => { None => {
let generics = bound::with_bound(item, &generics, let generics = bound::with_bound(item, &generics,
needs_deserialize_bound, needs_deserialize_bound,
&aster::path().ids(&["_serde", "de", "Deserialize"]).build()); &aster::path().ids(&["_serde", "Deserialize"]).build());
bound::with_bound(item, &generics, bound::with_bound(item, &generics,
requires_default, requires_default,
&aster::path().global().ids(&["std", "default", "Default"]).build()) &aster::path().global().ids(&["std", "default", "Default"]).build())

View File

@ -56,7 +56,7 @@ fn build_impl_generics(item: &Item) -> syn::Generics {
None => { None => {
bound::with_bound(item, &generics, bound::with_bound(item, &generics,
needs_serialize_bound, needs_serialize_bound,
&aster::path().ids(&["_serde", "ser", "Serialize"]).build()) &aster::path().ids(&["_serde", "Serialize"]).build())
} }
} }
} }