mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 08:45:41 +08:00
fix: code lint
This commit is contained in:
@@ -135,7 +135,7 @@ fn test_parse_check_output() {
|
|||||||
"#;
|
"#;
|
||||||
|
|
||||||
let res1 = parse_check_output(str1.into());
|
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());
|
let res3 = parse_check_output(str3.into());
|
||||||
|
|
||||||
assert_eq!(res1, res3);
|
assert_eq!(res1, res3);
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ impl Hotkey {
|
|||||||
Ok(())
|
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();
|
let mut map = HashMap::new();
|
||||||
|
|
||||||
hotkeys.iter().for_each(|hotkey| {
|
hotkeys.iter().for_each(|hotkey| {
|
||||||
|
|||||||
Reference in New Issue
Block a user