mirror of
https://github.com/Noratrieb/cargo-minimize.git
synced 2026-01-14 16:35:01 +01:00
cargo fmt
Some checks failed
Rust / Test ${{ matrix.build }} (linux-beta, ubuntu-latest, beta) (push) Has been cancelled
Rust / Test ${{ matrix.build }} (linux-nightly, ubuntu-latest, nightly) (push) Has been cancelled
Rust / Test ${{ matrix.build }} (linux-stable, ubuntu-latest, stable) (push) Has been cancelled
Rust / Test ${{ matrix.build }} (macos, macos-latest, stable) (push) Has been cancelled
Rust / Test ${{ matrix.build }} (windows, windows-latest, stable) (push) Has been cancelled
Some checks failed
Rust / Test ${{ matrix.build }} (linux-beta, ubuntu-latest, beta) (push) Has been cancelled
Rust / Test ${{ matrix.build }} (linux-nightly, ubuntu-latest, nightly) (push) Has been cancelled
Rust / Test ${{ matrix.build }} (linux-stable, ubuntu-latest, stable) (push) Has been cancelled
Rust / Test ${{ matrix.build }} (macos, macos-latest, stable) (push) Has been cancelled
Rust / Test ${{ matrix.build }} (windows, windows-latest, stable) (push) Has been cancelled
This commit is contained in:
parent
57fac9d194
commit
060b4afb17
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) {
|
fn visit_block_mut(&mut self, block: &mut syn::Block) {
|
||||||
match block.stmts.as_slice() {
|
match block.stmts.as_slice() {
|
||||||
[
|
[
|
||||||
syn::Stmt::Expr(syn::Expr::Loop(syn::ExprLoop {
|
syn::Stmt::Expr(
|
||||||
body: loop_body, ..
|
syn::Expr::Loop(syn::ExprLoop {
|
||||||
}), _semi),
|
body: loop_body, ..
|
||||||
|
}),
|
||||||
|
_semi,
|
||||||
|
),
|
||||||
] if loop_body.stmts.is_empty() => {}
|
] if loop_body.stmts.is_empty() => {}
|
||||||
// Empty bodies are empty already, no need to loopify them.
|
// Empty bodies are empty already, no need to loopify them.
|
||||||
[] => {}
|
[] => {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue