mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
add explicit_iter_loop clippy lint (#8570)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -65,7 +65,7 @@ impl MustNotIncludeKeys {
|
||||
impl MustNotIncludeKeys {
|
||||
/// Returns `true` if [`Enr`](discv5::Enr) passes filtering rules.
|
||||
pub fn filter(&self, enr: &discv5::Enr) -> FilterOutcome {
|
||||
for key in self.keys.iter() {
|
||||
for key in &self.keys {
|
||||
if matches!(key.filter(enr), FilterOutcome::Ok) {
|
||||
return FilterOutcome::Ignore {
|
||||
reason: format!(
|
||||
|
||||
Reference in New Issue
Block a user