ui/items: Remove useless Iterator::collect() call

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer
2025-12-09 13:17:57 +01:00
committed by Erik Kundt
parent dda6a6281a
commit b03e37184b
+3 -10
View File
@@ -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::<Vec<_>>(),
);
rendered.extend(comment.1.body().lines().map(|line| {
Line::from([span::default(line).gray()].to_vec())
}));
// Add metadata
rendered.push(