Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore iter_without_into_iter pedantic clippy lint
warning: `iter` method without an `IntoIterator` impl for `&RcVec<T>` --> src/rcvec.rs:33:5 | 33 | / pub fn iter(&self) -> slice::Iter<T> { 34 | | self.inner.iter() 35 | | } | |_____^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_without_into_iter = note: `-W clippy::iter-without-into-iter` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::iter_without_into_iter)]` help: consider implementing `IntoIterator` for `&RcVec<T>` | 24 + 25 + impl IntoIterator for &RcVec<T> { 26 + type IntoIter = std::slice::Iter<'_, T>; 27 + type Iter = &T; 28 + fn into_iter() -> Self::IntoIter { 29 + self.iter() 30 + } 31 + } |
- Loading branch information