Simplify the trait paths used in bounds
This commit is contained in:
parent
3951ef91c0
commit
506c8cc087
@ -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())
|
||||||
|
@ -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())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user