Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ellie committed Aug 5, 2024
1 parent 5e54aa3 commit 3a979db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/atuin/src/command/client/search/interactive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -895,7 +895,7 @@ impl State {
}

fn build_preview(
&mut self,
&self,
results: &[History],
compact: bool,
preview_width: u16,
Expand Down

0 comments on commit 3a979db

Please sign in to comment.