mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-04-15 06:20:31 +08:00
refactor(seq): use if let filter for selector group dedup
This commit is contained in:
parent
c40cdf6b55
commit
0193ba7bf9
@ -109,14 +109,13 @@ pub fn use_seq(seq: SeqMap, mut config: Mapping, field: &str) -> Mapping {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
for value in base_seq {
|
for value in base_seq {
|
||||||
match &value {
|
if let Value::String(name) = &value
|
||||||
Value::String(name) => {
|
&& !existing.insert(name.to_owned())
|
||||||
if existing.insert(name.to_owned()) {
|
{
|
||||||
seq.push(value);
|
continue;
|
||||||
}
|
|
||||||
}
|
|
||||||
_ => seq.push(value),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
seq.push(value);
|
||||||
}
|
}
|
||||||
proxies_seq = Some(seq);
|
proxies_seq = Some(seq);
|
||||||
appended_to_selector = true;
|
appended_to_selector = true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user