Skip to content

Commit c7d41a1

Browse files
authored
Fix the clippy::explicit_iter_loop lint (#9834)
# Objective Replace instances of ```rust for x in collection.iter{_mut}() { ``` with ```rust for x in &{mut} collection { ``` This also changes CI to no longer suppress this lint. Note that since this lint only shows up when using clippy in pedantic mode, it was probably unnecessary to suppress this lint in the first place.
1 parent b971803 commit c7d41a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/accessibility.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ fn update_accessibility_nodes(
131131
root_children.push(entity.to_node_id());
132132
}
133133
if let Some(children) = children {
134-
for child in children.iter() {
134+
for child in children {
135135
if node_entities.get(*child).is_ok() {
136136
node.push_child(child.to_node_id());
137137
}

0 commit comments

Comments
 (0)