Update Rust to v1.77 (#10510)

This commit is contained in:
Charlie Marsh 2024-03-21 12:10:33 -04:00 committed by GitHub
parent ac150b9314
commit 60fd98eb2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 35 additions and 84 deletions

View file

@ -175,9 +175,7 @@ fn find_double_star(pattern: &PatternMatchMapping, source: &str) -> Option<(Text
} = pattern;
// If there's no `rest` element, there's no `**`.
let Some(rest) = rest else {
return None;
};
let rest = rest.as_ref()?;
let mut tokenizer =
SimpleTokenizer::starts_at(patterns.last().map_or(pattern.start(), Ranged::end), source);