From 9a9697436e2f657ec5dbe8a5ece8c995b31c7925 Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Sun, 30 Jan 2022 13:29:07 -0600 Subject: [PATCH] quite complaining already, clippy --- src/main.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main.rs b/src/main.rs index f75c6b8..168fb67 100644 --- a/src/main.rs +++ b/src/main.rs @@ -268,12 +268,12 @@ impl KeyCodes { fn list_stuff() -> Result<()> { println!("--Key Modifiers--"); for mods in get_reedline_keybinding_modifiers().iter() { - print!("{}\n", mods); + println!("{}", mods); } println!("\n--Modes--"); for modes in get_reedline_prompt_edit_modes().iter() { - print!("{}\n", modes); + println!("{}", modes); } println!("\n--Key Codes--"); @@ -296,12 +296,12 @@ fn list_stuff() -> Result<()> { /// Return a Vec of the Reedline Keybinding Modifiers pub fn get_reedline_keybinding_modifiers() -> Vec { - let mut modifiers = vec![]; - modifiers.push("Alt".to_string()); - modifiers.push("Control".to_string()); - modifiers.push("Shift".to_string()); - modifiers.push("None".to_string()); - modifiers + vec![ + "Alt".to_string(), + "Control".to_string(), + "Shift".to_string(), + "None".to_string(), + ] } /// Return a Vec of the Reedline PromptEditModes