This commit is contained in:
Stephen Chung
2022-07-20 21:09:03 +08:00
18 changed files with 42 additions and 47 deletions

View File

@@ -215,8 +215,8 @@ impl IntoIterator for RangeCase {
#[inline(always)]
fn into_iter(self) -> Self::IntoIter {
match self {
Self::ExclusiveInt(r, ..) => Box::new(r.into_iter()),
Self::InclusiveInt(r, ..) => Box::new(r.into_iter()),
Self::ExclusiveInt(r, ..) => Box::new(r),
Self::InclusiveInt(r, ..) => Box::new(r),
}
}
}
@@ -507,8 +507,7 @@ impl<'a> IntoIterator for &'a StmtBlock {
#[inline(always)]
fn into_iter(self) -> Self::IntoIter {
let x = self.block.iter();
x
self.block.iter()
}
}