Address nits
This commit is contained in:
parent
699bf7dc59
commit
4534188d4b
2 changed files with 5 additions and 8 deletions
|
@ -536,11 +536,8 @@ mod parse {
|
|||
match v {
|
||||
Some(s) => {
|
||||
for s in s.split(",") {
|
||||
match s.chars().next() {
|
||||
Some('+') => slot.push((s[1..].to_string(), true)),
|
||||
Some('-') => slot.push((s[1..].to_string(), false)),
|
||||
_ => return false,
|
||||
}
|
||||
let Some(pass_name) = s.strip_prefix(&['+', '-'][..]) else { return false };
|
||||
slot.push((pass_name.to_string(), &s[..1] == "+"));
|
||||
}
|
||||
true
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue