Skip to content

Commit

Permalink
fix: un-use the wildcard pattern and use as instead
Browse files Browse the repository at this point in the history
  • Loading branch information
0x61nas committed Sep 1, 2023
1 parent 0fdc42e commit da8bb01
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/helper/docs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ pub fn get_docs_help<Output: Write>(cmd: &str, config: Config, output: &mut Outp
.iter()
.map(|e| e.display_msg.as_str())
.collect::<Vec<&str>>();
use PlzMenuSelection::*;
use PlzMenuSelection as Selection;
let mut selection = match config.plz_menu.selected_pos {
Start => Some(0),
Center => Some(menu_options.len() / 2),
End => Some(menu_options.len() - 1),
Selection::Start => Some(0),
Selection::Center => Some(menu_options.len() / 2),
Selection::End => Some(menu_options.len() - 1),
};
menu_options.push("Exit");
let values_map = build_the_values_map(cmd);
Expand Down

0 comments on commit da8bb01

Please sign in to comment.