Add parens to TraitBound

This commit is contained in:
David Tolnay 2018-03-31 23:45:30 +02:00
parent d82a0cc5ff
commit 8b44eb8bfc
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -192,6 +192,7 @@ where
// the bound e.g. Serialize
bounds: vec![
syn::TypeParamBound::Trait(syn::TraitBound {
paren_token: None,
modifier: syn::TraitBoundModifier::None,
lifetimes: None,
path: bound.clone(),
@ -239,6 +240,7 @@ pub fn with_self_bound(
// the bound e.g. Default
bounds: vec![
syn::TypeParamBound::Trait(syn::TraitBound {
paren_token: None,
modifier: syn::TraitBoundModifier::None,
lifetimes: None,
path: bound.clone(),