Skip to content

Commit

Permalink
fix: type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanaden committed Jun 24, 2024
1 parent e07ac46 commit a37b228
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rm-main/src/ui/tabs/torrents/table_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use super::rustmission_torrent::RustmissionTorrent;
pub struct TableManager {
ctx: app::Ctx,
pub table: GenericTable<RustmissionTorrent>,
pub widths: [Constraint; 7],
pub widths: [Constraint; 8],
pub filter: Arc<Mutex<Option<String>>>,
pub torrents_displaying_no: u16,
header: Vec<String>,
Expand Down Expand Up @@ -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
Expand All @@ -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();
}
Expand Down

0 comments on commit a37b228

Please sign in to comment.