mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
feat(clippy): add iter_without_into_iter (#9195)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de> Co-authored-by: Roman Krasiuk <rokrassyuk@gmail.com>
This commit is contained in:
@@ -177,6 +177,14 @@ impl PrefixSet {
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> IntoIterator for &'a PrefixSet {
|
||||
type IntoIter = std::slice::Iter<'a, reth_trie_common::Nibbles>;
|
||||
type Item = &'a reth_trie_common::Nibbles;
|
||||
fn into_iter(self) -> Self::IntoIter {
|
||||
self.iter()
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
Reference in New Issue
Block a user