mirror of
https://github.com/Noratrieb/cargo-minimize.git
synced 2026-01-14 08:25:01 +01:00
cargo fmt
This commit is contained in:
parent
790396009f
commit
d25e06b448
1 changed files with 6 additions and 3 deletions
|
|
@ -26,9 +26,12 @@ impl VisitMut for Visitor<'_> {
|
|||
fn visit_block_mut(&mut self, block: &mut syn::Block) {
|
||||
match block.stmts.as_slice() {
|
||||
[
|
||||
syn::Stmt::Expr(syn::Expr::Loop(syn::ExprLoop {
|
||||
body: loop_body, ..
|
||||
}), _semi),
|
||||
syn::Stmt::Expr(
|
||||
syn::Expr::Loop(syn::ExprLoop {
|
||||
body: loop_body, ..
|
||||
}),
|
||||
_semi,
|
||||
),
|
||||
] if loop_body.stmts.is_empty() => {}
|
||||
// Empty bodies are empty already, no need to loopify them.
|
||||
[] => {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue