Skip to content

Commit 3a979db

Browse files
committed
make clippy happy
1 parent 5e54aa3 commit 3a979db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/atuin/src/command/client/search/interactive.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ impl State {
764764
);
765765
}
766766

767-
fn build_title(&mut self, theme: &Theme) -> Paragraph {
767+
fn build_title(&self, theme: &Theme) -> Paragraph {
768768
let title = if self.update_needed.is_some() {
769769
let error_style: Style = theme.get_error().into();
770770
Paragraph::new(Text::from(Span::styled(
@@ -820,7 +820,7 @@ impl State {
820820
.alignment(Alignment::Center)
821821
}
822822

823-
fn build_stats(&mut self, theme: &Theme) -> Paragraph {
823+
fn build_stats(&self, theme: &Theme) -> Paragraph {
824824
let stats = Paragraph::new(Text::from(Span::raw(format!(
825825
"history count: {}",
826826
self.history_count,
@@ -863,7 +863,7 @@ impl State {
863863
}
864864
}
865865

866-
fn build_input(&mut self, style: StyleState) -> Paragraph {
866+
fn build_input(&self, style: StyleState) -> Paragraph {
867867
/// Max width of the UI box showing current mode
868868
const MAX_WIDTH: usize = 14;
869869
let (pref, mode) = if self.switched_search_mode {
@@ -895,7 +895,7 @@ impl State {
895895
}
896896

897897
fn build_preview(
898-
&mut self,
898+
&self,
899899
results: &[History],
900900
compact: bool,
901901
preview_width: u16,

0 commit comments

Comments
 (0)