Radish alpha
r
rad:z39mP9rQAaGmERfUMPULfPUi473tY
Radicle terminal user interface
Radicle
Git
ui/items: Remove useless Iterator::collect() call
Matthias Beyer committed 4 months ago
commit b03e37184ba43b74ba6161ffa5a7092e6ff79de2
parent dda6a62
1 file changed +3 -10
modified 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::<Vec<_>>(),
-
                                    );
+
                                    rendered.extend(comment.1.body().lines().map(|line| {
+
                                        Line::from([span::default(line).gray()].to_vec())
+
                                    }));

                                    // Add metadata
                                    rendered.push(