diff options
| author | Ellie Huxtable <ellie@atuin.sh> | 2024-08-07 21:07:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-07 21:07:34 +0100 |
| commit | b764ee327da6641e95279c9540be5fcf68814f14 (patch) | |
| tree | 9a9710972fb6656ed2a52ebc61c9a7b268c1c9b3 /crates | |
| parent | fix(mail): enable correct tls features for postmark client (#2347) (diff) | |
| download | atuin-b764ee327da6641e95279c9540be5fcf68814f14.zip | |
chore: update to rust 1.80 (#2344)
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/atuin/src/command/client/search/interactive.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/atuin/src/command/client/search/interactive.rs b/crates/atuin/src/command/client/search/interactive.rs index 777ec257..fae39e28 100644 --- a/crates/atuin/src/command/client/search/interactive.rs +++ b/crates/atuin/src/command/client/search/interactive.rs @@ -764,7 +764,7 @@ impl State { ); } - fn build_title(&mut self, theme: &Theme) -> Paragraph { + fn build_title(&self, theme: &Theme) -> Paragraph { let title = if self.update_needed.is_some() { let error_style: Style = theme.get_error().into(); Paragraph::new(Text::from(Span::styled( @@ -820,7 +820,7 @@ impl State { .alignment(Alignment::Center) } - fn build_stats(&mut self, theme: &Theme) -> Paragraph { + fn build_stats(&self, theme: &Theme) -> Paragraph { let stats = Paragraph::new(Text::from(Span::raw(format!( "history count: {}", self.history_count, @@ -863,7 +863,7 @@ impl State { } } - fn build_input(&mut self, style: StyleState) -> Paragraph { + fn build_input(&self, style: StyleState) -> Paragraph { /// Max width of the UI box showing current mode const MAX_WIDTH: usize = 14; let (pref, mode) = if self.switched_search_mode { @@ -895,7 +895,7 @@ impl State { } fn build_preview( - &mut self, + &self, results: &[History], compact: bool, preview_width: u16, |
