From b03e37184ba43b74ba6161ffa5a7092e6ff79de2 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 17 Aug 2025 12:51:56 +0200 Subject: [PATCH] ui/items: Remove useless Iterator::collect() call Signed-off-by: Matthias Beyer --- bin/ui/items.rs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/bin/ui/items.rs b/bin/ui/items.rs index 72457ac3..210db0ce 100644 --- a/bin/ui/items.rs +++ b/bin/ui/items.rs @@ -1382,16 +1382,9 @@ impl<'a> HunkItem<'a> { } // Add comment body - rendered.extend( - comment - .1 - .body() - .lines() - .map(|line| { - Line::from([span::default(line).gray()].to_vec()) - }) - .collect::>(), - ); + rendered.extend(comment.1.body().lines().map(|line| { + Line::from([span::default(line).gray()].to_vec()) + })); // Add metadata rendered.push(