diff options
| author | Ravi Shankar <wafflespeanut@gmail.com> | 2015-10-21 12:56:24 +0530 |
|---|---|---|
| committer | Ravi Shankar <wafflespeanut@gmail.com> | 2015-10-24 15:22:37 +0530 |
| commit | d135217db26bd9a2643e57170c3f459aa42e08e4 (patch) | |
| tree | a6bda1db1cc06a7dd3eecf61d657528a3e61dc1d /src/expr.rs | |
| parent | 29b244b67ed6708b42507067d029a56614c1c484 (diff) | |
show rustfmt coverage!
Diffstat (limited to 'src/expr.rs')
| -rw-r--r-- | src/expr.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expr.rs b/src/expr.rs index 00d8ea0e0e2..20a637bffca 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -422,7 +422,7 @@ impl Rewrite for ast::Block { return Some(user_str); } - let mut visitor = FmtVisitor::from_codemap(context.codemap, context.config); + let mut visitor = FmtVisitor::from_codemap(context.codemap, context.config, None); visitor.block_indent = context.block_indent; let prefix = match self.rules { @@ -833,7 +833,7 @@ impl Rewrite for ast::Arm { let attr_str = if !attrs.is_empty() { // We only use this visitor for the attributes, should we use it for // more? - let mut attr_visitor = FmtVisitor::from_codemap(context.codemap, context.config); + let mut attr_visitor = FmtVisitor::from_codemap(context.codemap, context.config, None); attr_visitor.block_indent = context.block_indent; attr_visitor.last_pos = attrs[0].span.lo; if attr_visitor.visit_attrs(attrs) { |
