Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
Signed-off-by: Heinz N. Gies <[email protected]>
  • Loading branch information
Licenser committed Jul 6, 2024
1 parent b1e3a87 commit 62e5916
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 1 addition & 9 deletions src/value/lazy/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/value/lazy/object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 62e5916

Please sign in to comment.