]> git.lizzy.rs Git - rust.git/blobdiff - src/expr.rs
Remove wrap_str() from recover_comment_removed()
[rust.git] / src / expr.rs
index 590360f0dbe807493c3662361561b41fd908489e..e1cf24cdf2b2411bdcdb7daae91bbb2e37cc577b 100644 (file)
@@ -328,7 +328,7 @@ fn needs_space_before_range(context: &RewriteContext, lhs: &ast::Expr) -> bool {
 
     expr_rw
         .and_then(|expr_str| {
-            recover_comment_removed(expr_str, expr.span, context, shape)
+            recover_comment_removed(expr_str, expr.span, context)
         })
         .and_then(|expr_str| {
             let attrs = outer_attributes(&expr.attrs);
@@ -920,9 +920,7 @@ fn rewrite(&self, context: &RewriteContext, shape: Shape) -> Option<String> {
             }
             ast::StmtKind::Mac(..) | ast::StmtKind::Item(..) => None,
         };
-        result.and_then(|res| {
-            recover_comment_removed(res, self.span(), context, shape)
-        })
+        result.and_then(|res| recover_comment_removed(res, self.span(), context))
     }
 }