fix: code lint

This commit is contained in:
huzibaca 2024-09-24 20:09:30 +08:00
parent 57f1c005e6
commit f82b0f259c
2 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ fn test_parse_check_output() {
"#;
let res1 = parse_check_output(str1.into());
let res2 = parse_check_output(str2.into());
// let res2 = parse_check_output(str2.into());
let res3 = parse_check_output(str3.into());
assert_eq!(res1, res3);

View File

@ -110,7 +110,7 @@ impl Hotkey {
Ok(())
}
fn get_map_from_vec(hotkeys: &Vec<String>) -> HashMap<&str, &str> {
fn get_map_from_vec(hotkeys: &[String]) -> HashMap<&str, &str> {
let mut map = HashMap::new();
hotkeys.iter().for_each(|hotkey| {