From a26291a0265b99d3f394c16de4768cf982401503 Mon Sep 17 00:00:00 2001 From: "Heinz N. Gies" Date: Sat, 6 Jul 2024 19:32:40 +0200 Subject: [PATCH] make clippy happy Signed-off-by: Heinz N. Gies --- src/value/lazy/array.rs | 10 +--------- src/value/lazy/object.rs | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/value/lazy/array.rs b/src/value/lazy/array.rs index 762c2a65..5ef3c9b7 100644 --- a/src/value/lazy/array.rs +++ b/src/value/lazy/array.rs @@ -43,7 +43,7 @@ where } } /// FIXME: docs - #[allow(clippy::iter_without_into_iter)] + #[allow(clippy::pedantic)] // we want into_iter_without_iter but that lint doesn't exist in older clippy #[must_use] pub fn iter<'i>(&'i self) -> ArrayIter<'i, 'input> { match self { @@ -69,14 +69,6 @@ where } } -// impl<'tape, 'input> IntoIterator for &Array<'tape, 'input> { -// type IntoIter = ArrayIter<'tape, 'input>; -// type Item = Value<'tape, 'input>; -// fn into_iter(self) -> Self::IntoIter { -// self.iter() -// } -// } - #[cfg(test)] mod test { use crate::to_tape; diff --git a/src/value/lazy/object.rs b/src/value/lazy/object.rs index a228e30c..b69ad748 100644 --- a/src/value/lazy/object.rs +++ b/src/value/lazy/object.rs @@ -50,7 +50,7 @@ impl<'tape, 'input> Object<'tape, 'input> { } } /// FIXME: docs - #[allow(clippy::iter_without_into_iter)] + #[allow(clippy::pedantic)] // we want into_iter_without_iter but that lint doesn't exist in older clippy #[must_use] pub fn iter<'i>(&'i self) -> Iter<'i, 'input> { match self {