From 65b74277d1f113174ad52cae9ffa93fbef1dc705 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Tue, 21 Apr 2026 02:34:35 +0100 Subject: chore: update to rust 1.95 (#3426) ## Checks - [ ] I am happy for maintainers to push small adjustments to this PR, to speed up the review cycle - [ ] I have checked that there are no existing pull requests for the same thing --- crates/atuin-ai/src/commands/inline.rs | 6 ++---- crates/atuin-ai/src/tui/components/markdown.rs | 8 +++----- 2 files changed, 5 insertions(+), 9 deletions(-) (limited to 'crates/atuin-ai/src') diff --git a/crates/atuin-ai/src/commands/inline.rs b/crates/atuin-ai/src/commands/inline.rs index 6d9628ea..b7aae51f 100644 --- a/crates/atuin-ai/src/commands/inline.rs +++ b/crates/atuin-ai/src/commands/inline.rs @@ -326,10 +326,8 @@ fn prompt_ai_setup() -> Result { KeyCode::Up | KeyCode::Char('k') => { selected = selected.saturating_sub(1); } - KeyCode::Down | KeyCode::Char('j') => { - if selected < options.len() - 1 { - selected += 1; - } + KeyCode::Down | KeyCode::Char('j') if selected < options.len() - 1 => { + selected += 1; } KeyCode::Enter => break, KeyCode::Esc => { diff --git a/crates/atuin-ai/src/tui/components/markdown.rs b/crates/atuin-ai/src/tui/components/markdown.rs index f164fdc5..607520b7 100644 --- a/crates/atuin-ai/src/tui/components/markdown.rs +++ b/crates/atuin-ai/src/tui/components/markdown.rs @@ -196,11 +196,9 @@ fn parse_markdown<'a>(source: &'a str, styles: &'a MarkdownStyles) -> Text<'stat Event::End(TagEnd::Item) => { in_list_item = false; } - Event::Start(Tag::List(_)) => { - if current_line > 0 || !lines[0].is_empty() { - current_line += 1; - lines.push(Vec::new()); - } + Event::Start(Tag::List(_)) if current_line > 0 || !lines[0].is_empty() => { + current_line += 1; + lines.push(Vec::new()); } Event::End(TagEnd::List(_)) => {} _ => {} -- cgit v1.3.1