@@ -10,10 +10,7 @@ use cassowary::{
1010 {Expression, Solver},
1111};
1212use helix_view::graphics::{Rect, Style};
13−use std::{
14− collections::HashMap,
15− iter::{self, Iterator},
16−};
13+use std::collections::HashMap;
1714use unicode_width::UnicodeWidthStr;
1815
1916/// A [`Cell`] contains the [`Text`] to be displayed in a [`Row`] of a [`Table`].
@@ -415,9 +412,7 @@ impl<'a> Table<'a> {
415412 let has_selection = state.selected.is_some();
416413 let columns_widths = self.get_columns_widths(table_area.width, has_selection);
417414 let highlight_symbol = self.highlight_symbol.unwrap_or("");
418− let blank_symbol = iter::repeat(" ")
419− .take(highlight_symbol.width())
420− .collect::<String>();
415+ let blank_symbol = " ".repeat(highlight_symbol.width());
421416 let mut current_height = 0;
422417 let mut rows_height = table_area.height;
423418