Skip to content

Commit

Permalink
avoid explicit iter loops (clippy::explicit_iter_loop)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel.eades authored and Byron committed Aug 20, 2024
1 parent d97f8f5 commit a8c7fa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -465,12 +465,12 @@ where
formatter.write_char('#')?;
formatter.write_str(&id_str)?;
}
for class in classes.iter() {
for class in &classes {
formatter.write_char(' ')?;
formatter.write_char('.')?;
formatter.write_str(class)?;
}
for (key, val) in attributes.iter() {
for (key, val) in &attributes {
formatter.write_char(' ')?;
formatter.write_str(key)?;
if let Some(val) = val {
Expand Down

0 comments on commit a8c7fa5

Please sign in to comment.