chore: clippy fix useless_conversion

This commit is contained in:
quake
2022-07-20 21:28:17 +09:00
parent e707b66639
commit 8d91e7eb63
5 changed files with 7 additions and 8 deletions

View File

@@ -194,8 +194,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),
}
}
}