Skip to content

Commit

Permalink
Simplify printing of Stmt::Local box ends
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jan 5, 2025
1 parent ba264e3 commit 9d24e92
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/stmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,9 @@ impl Printer {
} else {
self.expr_as_small_block(diverge, INDENT);
}
self.end();
} else {
self.end();
}
} else {
self.end();
}
self.end();
self.word(";");
self.hardbreak();
}
Expand Down

0 comments on commit 9d24e92

Please sign in to comment.