diff --git a/Cargo.toml b/Cargo.toml index a796249e..1898eb96 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ authors = [ "Alex Tokarev ", "Jacob Finkelman ", ] -edition = "2018" +edition = "2021" description = "PubGrub version solving algorithm" readme = "README.md" repository = "https://github.com/pubgrub-rs/pubgrub" diff --git a/src/internal/small_vec.rs b/src/internal/small_vec.rs index 4c2a97df..fa720435 100644 --- a/src/internal/small_vec.rs +++ b/src/internal/small_vec.rs @@ -166,9 +166,9 @@ impl IntoIterator for SmallVec { fn into_iter(self) -> Self::IntoIter { match self { SmallVec::Empty => SmallVecIntoIter::Empty, - SmallVec::One(a) => SmallVecIntoIter::One(IntoIterator::into_iter(a)), - SmallVec::Two(a) => SmallVecIntoIter::Two(IntoIterator::into_iter(a)), - SmallVec::Flexible(v) => SmallVecIntoIter::Flexible(IntoIterator::into_iter(v)), + SmallVec::One(a) => SmallVecIntoIter::One(a.into_iter()), + SmallVec::Two(a) => SmallVecIntoIter::Two(a.into_iter()), + SmallVec::Flexible(v) => SmallVecIntoIter::Flexible(v.into_iter()), } } }