Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 1351db3

Browse files
committed
iterate over a maps values directly. (clippy::for_kv_map)
1 parent 45108b1 commit 1351db3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/render.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1542,7 +1542,7 @@ impl Context {
15421542
}
15431543

15441544
if self.shared.sort_modules_alphabetically {
1545-
for (_, items) in &mut map {
1545+
for items in map.values_mut() {
15461546
items.sort();
15471547
}
15481548
}

0 commit comments

Comments
 (0)