Skip to content

Commit f3b6eb8

Browse files
authored
Merge pull request #210 from Muscraft/fix-needless-for-each
chore: Fix clippy warning
2 parents 9fda85f + d430005 commit f3b6eb8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/renderer/source_map.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,9 @@ impl<'a> SourceMap<'a> {
298298
annotated_line_infos.retain(|l| !l.annotations.is_empty());
299299
}
300300

301-
annotated_line_infos
302-
.iter_mut()
303-
.for_each(|l| l.annotations.sort_by(|a, b| a.start.cmp(&b.start)));
301+
for l in annotated_line_infos.iter_mut() {
302+
l.annotations.sort_by(|a, b| a.start.cmp(&b.start));
303+
}
304304

305305
(max_depth, annotated_line_infos)
306306
}

0 commit comments

Comments
 (0)