Rollup merge of #99528 - matthiaskrgr:2022_07_perf, r=estebank
couple of clippy::perf fixes
This commit is contained in:
commit
230b775719
10 changed files with 17 additions and 21 deletions
|
@ -535,7 +535,7 @@ mod parse {
|
|||
) -> bool {
|
||||
match v {
|
||||
Some(s) => {
|
||||
for s in s.split(",") {
|
||||
for s in s.split(',') {
|
||||
let Some(pass_name) = s.strip_prefix(&['+', '-'][..]) else { return false };
|
||||
slot.push((pass_name.to_string(), &s[..1] == "+"));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue