diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2017-06-12 16:01:41 +1200 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2017-06-13 14:42:54 +1200 |
| commit | 6f30d9e7c973d7bee78f8d16aa623f679c37bcae (patch) | |
| tree | 3a8ecca75b37ca838bfd896558c7b8d130d2324d /src/types.rs | |
| parent | 1f512948a03cd24c2f8a056be0a2f53675802fd2 (diff) | |
Reformat tests
Diffstat (limited to 'src/types.rs')
| -rw-r--r-- | src/types.rs | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/src/types.rs b/src/types.rs index f54e1c96eda..b1cea7df864 100644 --- a/src/types.rs +++ b/src/types.rs @@ -348,13 +348,11 @@ where String::new() }; - Some( - if context.config.spaces_within_parens() { - format!("( {} ){}{}", list_str, infix, output) - } else { - format!("({}){}{}", list_str, infix, output) - }, - ) + Some(if context.config.spaces_within_parens() { + format!("( {} ){}{}", list_str, infix, output) + } else { + format!("({}){}{}", list_str, infix, output) + }) } fn type_bound_colon(context: &RewriteContext) -> &'static str { @@ -588,13 +586,13 @@ impl Rewrite for ast::PolyTraitRef { ), )); - Some( - if context.config.spaces_within_angle_brackets() && lifetime_str.len() > 0 { - format!("for< {} > {}", lifetime_str, path_str) - } else { - format!("for<{}> {}", lifetime_str, path_str) - }, - ) + Some(if context.config.spaces_within_angle_brackets() && + lifetime_str.len() > 0 + { + format!("for< {} > {}", lifetime_str, path_str) + } else { + format!("for<{}> {}", lifetime_str, path_str) + }) } else { self.trait_ref.rewrite(context, shape) } |
