From 769b5ac8338ca7c9df8927bf2b9f6677d3355f4f Mon Sep 17 00:00:00 2001 From: RumovZ Date: Fri, 9 Apr 2021 22:51:18 +0200 Subject: [PATCH] Remove superfluous muts --- rslib/src/browser_table.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rslib/src/browser_table.rs b/rslib/src/browser_table.rs index 387c1ae23..a74a03247 100644 --- a/rslib/src/browser_table.rs +++ b/rslib/src/browser_table.rs @@ -350,7 +350,7 @@ impl RowContext { }) } - fn browser_row(&mut self, columns: &[Column]) -> Result { + fn browser_row(&self, columns: &[Column]) -> Result { Ok(Row { cells: columns .iter() @@ -361,14 +361,14 @@ impl RowContext { }) } - fn get_cell(&mut self, column: Column) -> Result { + fn get_cell(&self, column: Column) -> Result { Ok(Cell { text: self.get_cell_text(column)?, is_rtl: self.get_is_rtl(column), }) } - fn get_cell_text(&mut self, column: Column) -> Result { + fn get_cell_text(&self, column: Column) -> Result { Ok(match column { Column::Question => self.question_str(), Column::Answer => self.answer_str(), @@ -437,7 +437,7 @@ impl RowContext { .to_string() } - fn due_str(&mut self) -> String { + fn due_str(&self) -> String { if self.notes_mode { self.note_due_str() } else { @@ -445,7 +445,7 @@ impl RowContext { } } - fn card_due_str(&mut self) -> String { + fn card_due_str(&self) -> String { let due = if self.cards[0].is_filtered_deck() { self.tr.browsing_filtered() } else if self.cards[0].is_new_type_or_queue() { @@ -524,7 +524,7 @@ impl RowContext { .date_string() } - fn deck_str(&mut self) -> String { + fn deck_str(&self) -> String { if self.notes_mode { let decks = self.cards.iter().map(|c| c.deck_id).unique().count(); if decks > 1 {