mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 04:45:01 +00:00
Upgrade RustPython (#4900)
This commit is contained in:
parent
4b78141f6b
commit
39a1f3980f
51 changed files with 416 additions and 320 deletions
|
@ -745,9 +745,13 @@ fn find_pos_only_slash_offset(
|
|||
),
|
||||
locator.contents(),
|
||||
)
|
||||
.map(|(offset, c)| {
|
||||
debug_assert_eq!(c, '/');
|
||||
offset
|
||||
.and_then(|(offset, c)| {
|
||||
if c == '/' {
|
||||
Some(offset)
|
||||
} else {
|
||||
debug_assert_eq!(c, ')');
|
||||
None
|
||||
}
|
||||
})
|
||||
},
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue