aboutsummaryrefslogtreecommitdiff
path: root/helix-tui/src/widgets/table.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-tui/src/widgets/table.rs')
-rw-r--r--helix-tui/src/widgets/table.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/helix-tui/src/widgets/table.rs b/helix-tui/src/widgets/table.rs
index 539f6a61..2983072d 100644
--- a/helix-tui/src/widgets/table.rs
+++ b/helix-tui/src/widgets/table.rs
@@ -122,11 +122,8 @@ impl<'a> Row<'a> {
}
/// Returns the contents of cells as plain text, without styles and colors.
- pub fn cell_text(&self) -> Vec<String> {
- self.cells
- .iter()
- .map(|cell| String::from(&cell.content))
- .collect()
+ pub fn cell_text(&self) -> impl Iterator<Item = String> + '_ {
+ self.cells.iter().map(|cell| String::from(&cell.content))
}
}