mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 02:13:08 +00:00
Update Rust to v1.77 (#10510)
This commit is contained in:
parent
ac150b9314
commit
60fd98eb2f
26 changed files with 35 additions and 84 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue