diff options
author | Blaž Hrastnik | 2021-12-03 03:48:07 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-12-03 03:48:07 +0000 |
commit | 34f46e7502a562ffb1a3f681046c6cb7e86f7286 (patch) | |
tree | f6697c3cdfe5c5899180c8c93f39cea0dff03ddb /helix-tui/src/widgets | |
parent | d31bef7fea1aa0cc9455cf082825ccff9614ed5e (diff) |
Bump rust to 1.57, fix new lint failures
Diffstat (limited to 'helix-tui/src/widgets')
-rw-r--r-- | helix-tui/src/widgets/table.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/helix-tui/src/widgets/table.rs b/helix-tui/src/widgets/table.rs index d7caa0b0..6aee5988 100644 --- a/helix-tui/src/widgets/table.rs +++ b/helix-tui/src/widgets/table.rs @@ -363,21 +363,12 @@ impl<'a> Table<'a> { } } -#[derive(Debug, Clone)] +#[derive(Debug, Default, Clone)] pub struct TableState { pub offset: usize, pub selected: Option<usize>, } -impl Default for TableState { - fn default() -> TableState { - TableState { - offset: 0, - selected: None, - } - } -} - impl TableState { pub fn selected(&self) -> Option<usize> { self.selected |