Clean up more clippy.
This commit is contained in:
@@ -507,7 +507,7 @@ impl<'a> IntoIterator for &'a StmtBlock {
|
||||
impl Extend<Stmt> for StmtBlock {
|
||||
#[inline(always)]
|
||||
fn extend<T: IntoIterator<Item = Stmt>>(&mut self, iter: T) {
|
||||
self.block.extend(iter)
|
||||
self.block.extend(iter);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -799,7 +799,7 @@ impl Stmt {
|
||||
Self::For(x, ..) => x.2.is_pure() && x.3.iter().all(Stmt::is_pure),
|
||||
|
||||
Self::Var(..) | Self::Assignment(..) | Self::FnCall(..) => false,
|
||||
Self::Block(block, ..) => block.iter().all(|stmt| stmt.is_pure()),
|
||||
Self::Block(block, ..) => block.iter().all(Stmt::is_pure),
|
||||
Self::BreakLoop(..) | Self::Return(..) => false,
|
||||
Self::TryCatch(x, ..) => {
|
||||
x.try_block.iter().all(Stmt::is_pure) && x.catch_block.iter().all(Stmt::is_pure)
|
||||
|
Reference in New Issue
Block a user