diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2018-05-18 16:35:09 +1200 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2018-05-18 16:35:09 +1200 |
| commit | d726492e65eb597eb7f8eef5d428a9bce4ba4eed (patch) | |
| tree | 074660484a9c9c03c2667657472559705a5ef7a3 /src/utils.rs | |
| parent | 7b6d2b4699303e9b4f966b7a3db65b979ca4a6fe (diff) | |
Remove spaces_within_parens_and_brackets
cc #1974
Diffstat (limited to 'src/utils.rs')
| -rw-r--r-- | src/utils.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/utils.rs b/src/utils.rs index 6c8862b9bf5..961989b3f5d 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -360,15 +360,6 @@ pub fn colon_spaces(before: bool, after: bool) -> &'static str { } } -#[inline] -pub fn paren_overhead(context: &RewriteContext) -> usize { - if context.config.spaces_within_parens_and_brackets() { - 4 - } else { - 2 - } -} - pub fn left_most_sub_expr(e: &ast::Expr) -> &ast::Expr { match e.node { ast::ExprKind::Call(ref e, _) |
