From 7ef5a7945fb442143b557f32febd4060e5f546fe Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Fri, 15 Oct 2021 15:52:03 -0500 Subject: [PATCH] clippy take2 --- src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index dc3aa39507..0ccece42fb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -49,8 +49,10 @@ impl CompletionActionHandler for FuzzyCompletion { let _ = crossterm::terminal::disable_raw_mode(); println!(); - let mut theme = ColorfulTheme::default(); - theme.active_item_style = Style::new().for_stderr().on_green().black(); + let theme = ColorfulTheme { + active_item_style: Style::new().for_stderr().on_green().black(), + ..Default::default() + }; let result = Select::with_theme(&theme) .default(0) .items(&selections[..])