From 2c204880db10e4c94b5802e3eeb9802db36aaec3 Mon Sep 17 00:00:00 2001 From: boxdot Date: Mon, 6 Nov 2023 15:46:13 +0100 Subject: [PATCH] rustfmt --- src/main.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 1a5aedf..713ee14 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,7 +10,7 @@ use clap::Parser; use crossterm::{ event::{ DisableMouseCapture, EnableMouseCapture, Event as CEvent, EventStream, KeyCode, KeyEvent, - KeyModifiers, MouseButton, MouseEvent, MouseEventKind, KeyEventKind, + KeyEventKind, KeyModifiers, MouseButton, MouseEvent, MouseEventKind, }, execute, terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen}, @@ -298,7 +298,12 @@ async fn run_single_threaded(relink: bool) -> anyhow::Result<()> { } _ => {} }, - Some(Event::Input(event @ KeyEvent { kind: KeyEventKind::Press, .. })) => match event.code { + Some(Event::Input( + event @ KeyEvent { + kind: KeyEventKind::Press, + .. + }, + )) => match event.code { KeyCode::F(1u8) => { // Toggle help panel app.toggle_help(); @@ -395,7 +400,7 @@ async fn run_single_threaded(relink: bool) -> anyhow::Result<()> { } _ => app.on_key(event).await?, }, - Some(Event::Input(..)) => {}, + Some(Event::Input(..)) => {} Some(Event::Paste(content)) => { let multi_line_state = app.is_multiline_input; app.is_multiline_input = true;