mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-11-15 16:00:38 +08:00
ui/items: Remove useless Iterator::collect() call
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
committed by
Erik Kundt
parent
dda6a6281a
commit
b03e37184b
+3
-10
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user