mirror of
https://github.com/Noratrieb/cargo-minimize.git
synced 2026-01-16 17:25:03 +01:00
just works
This commit is contained in:
parent
dcd163aeda
commit
436546eaf5
7 changed files with 23 additions and 14 deletions
|
|
@ -27,7 +27,7 @@ impl VisitMut for Visitor<'_> {
|
|||
match block.stmts.as_slice() {
|
||||
[syn::Stmt::Expr(syn::Expr::Loop(syn::ExprLoop {
|
||||
body: loop_body, ..
|
||||
}))] if loop_body.stmts.is_empty() => {}
|
||||
}))] if loop_body.stmts.is_empty() && self.checker.can_process(&self.current_path) => {}
|
||||
_ => {
|
||||
*block = self.loop_expr.clone();
|
||||
self.process_state = ProcessState::Changed;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue