Fix even more clippy warnings
This commit is contained in:
parent
bfecb18771
commit
57c6ed0c07
53 changed files with 276 additions and 520 deletions
|
@ -344,10 +344,10 @@ impl<'a, 'b> BuildReducedGraphVisitor<'a, 'b> {
|
|||
|
||||
fn block_needs_anonymous_module(&mut self, block: &Block) -> bool {
|
||||
// If any statements are items, we need to create an anonymous module
|
||||
block.stmts.iter().any(|statement| match statement.kind {
|
||||
StmtKind::Item(_) | StmtKind::MacCall(_) => true,
|
||||
_ => false,
|
||||
})
|
||||
block
|
||||
.stmts
|
||||
.iter()
|
||||
.any(|statement| matches!(statement.kind, StmtKind::Item(_) | StmtKind::MacCall(_)))
|
||||
}
|
||||
|
||||
// Add an import to the current module.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue