mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-15 13:36:49 +00:00
Remove duplicates inside visit_stmt()
This commit is contained in:
parent
435ab867c3
commit
2fb5affb5f
@ -72,11 +72,7 @@ impl<'a> FmtVisitor<'a> {
|
||||
ast::StmtKind::Item(ref item) => {
|
||||
self.visit_item(item);
|
||||
}
|
||||
ast::StmtKind::Local(..) => {
|
||||
let rewrite = stmt.rewrite(&self.get_context(), self.shape());
|
||||
self.push_rewrite(stmt.span(), rewrite);
|
||||
}
|
||||
ast::StmtKind::Expr(..) | ast::StmtKind::Semi(..) => {
|
||||
ast::StmtKind::Local(..) | ast::StmtKind::Expr(..) | ast::StmtKind::Semi(..) => {
|
||||
let rewrite = stmt.rewrite(&self.get_context(), self.shape());
|
||||
self.push_rewrite(stmt.span(), rewrite)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user