aboutsummaryrefslogtreecommitdiff
path: root/helix-tui/src/widgets
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-06-27 04:27:35 +0000
committerBlaž Hrastnik2021-06-27 04:27:47 +0000
commitcad14c6b46413b23d3afee7c979eeb0dbd4fb84c (patch)
treebb50d665f233f2eb7589ad75f65c6266b42eb87d /helix-tui/src/widgets
parented1a745442a88804fd193a8a5d946377516cf39d (diff)
Address nightly clippy warnings
Diffstat (limited to 'helix-tui/src/widgets')
-rw-r--r--helix-tui/src/widgets/table.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/helix-tui/src/widgets/table.rs b/helix-tui/src/widgets/table.rs
index 44f6c58f..ee5147b7 100644
--- a/helix-tui/src/widgets/table.rs
+++ b/helix-tui/src/widgets/table.rs
@@ -10,10 +10,7 @@ use cassowary::{
{Expression, Solver},
};
use helix_view::graphics::{Rect, Style};
-use std::{
- collections::HashMap,
- iter::{self, Iterator},
-};
+use std::collections::HashMap;
use unicode_width::UnicodeWidthStr;
/// A [`Cell`] contains the [`Text`] to be displayed in a [`Row`] of a [`Table`].
@@ -415,9 +412,7 @@ impl<'a> Table<'a> {
let has_selection = state.selected.is_some();
let columns_widths = self.get_columns_widths(table_area.width, has_selection);
let highlight_symbol = self.highlight_symbol.unwrap_or("");
- let blank_symbol = iter::repeat(" ")
- .take(highlight_symbol.width())
- .collect::<String>();
+ let blank_symbol = " ".repeat(highlight_symbol.width());
let mut current_height = 0;
let mut rows_height = table_area.height;