From d4300058bd506fb83683bb8f4ca1275760bf03a8 Mon Sep 17 00:00:00 2001 From: Scott Schafer Date: Wed, 11 Jun 2025 09:39:53 -0600 Subject: [PATCH] chore: Fix clippy warning --- src/renderer/source_map.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer/source_map.rs b/src/renderer/source_map.rs index d014bb01..d42dccce 100644 --- a/src/renderer/source_map.rs +++ b/src/renderer/source_map.rs @@ -298,9 +298,9 @@ impl<'a> SourceMap<'a> { annotated_line_infos.retain(|l| !l.annotations.is_empty()); } - annotated_line_infos - .iter_mut() - .for_each(|l| l.annotations.sort_by(|a, b| a.start.cmp(&b.start))); + for l in annotated_line_infos.iter_mut() { + l.annotations.sort_by(|a, b| a.start.cmp(&b.start)); + } (max_depth, annotated_line_infos) }