Skip to content

Commit 2fb5aff

Browse files
committed
Remove duplicates inside visit_stmt()
1 parent 435ab86 commit 2fb5aff

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/visitor.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,7 @@ impl<'a> FmtVisitor<'a> {
7272
ast::StmtKind::Item(ref item) => {
7373
self.visit_item(item);
7474
}
75-
ast::StmtKind::Local(..) => {
76-
let rewrite = stmt.rewrite(&self.get_context(), self.shape());
77-
self.push_rewrite(stmt.span(), rewrite);
78-
}
79-
ast::StmtKind::Expr(..) | ast::StmtKind::Semi(..) => {
75+
ast::StmtKind::Local(..) | ast::StmtKind::Expr(..) | ast::StmtKind::Semi(..) => {
8076
let rewrite = stmt.rewrite(&self.get_context(), self.shape());
8177
self.push_rewrite(stmt.span(), rewrite)
8278
}

0 commit comments

Comments
 (0)