From a37b2283540d38cc8b6299203c5b194e6dcd0b88 Mon Sep 17 00:00:00 2001 From: aidanaden Date: Tue, 25 Jun 2024 03:02:16 +0800 Subject: [PATCH] fix: type errors --- rm-main/src/ui/tabs/torrents/table_manager.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rm-main/src/ui/tabs/torrents/table_manager.rs b/rm-main/src/ui/tabs/torrents/table_manager.rs index 3d9078b..f324002 100644 --- a/rm-main/src/ui/tabs/torrents/table_manager.rs +++ b/rm-main/src/ui/tabs/torrents/table_manager.rs @@ -9,7 +9,7 @@ use super::rustmission_torrent::RustmissionTorrent; pub struct TableManager { ctx: app::Ctx, pub table: GenericTable, - pub widths: [Constraint; 7], + pub widths: [Constraint; 8], pub filter: Arc>>, pub torrents_displaying_no: u16, header: Vec, @@ -101,7 +101,7 @@ impl TableManager { rows } - const fn default_widths() -> [Constraint; 7] { + const fn default_widths() -> [Constraint; 8] { [ Constraint::Length(1), // State Constraint::Max(70), // Name @@ -114,7 +114,7 @@ impl TableManager { ] } - fn header_widths(&self, rows: &[RustmissionTorrent]) -> [Constraint; 7] { + fn header_widths(&self, rows: &[RustmissionTorrent]) -> [Constraint; 8] { if !self.ctx.config.general.auto_hide { return Self::default_widths(); }