mirror of
https://github.com/nushell/reedline.git
synced 2024-11-09 13:09:10 +03:00
quite complaining already, clippy
This commit is contained in:
parent
30f4dc0e7a
commit
9a9697436e
16
src/main.rs
16
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<String> {
|
||||
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<String> of the Reedline PromptEditModes
|
||||
|
Loading…
Reference in New Issue
Block a user