mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-10 07:04:22 +00:00
Use de morgan
This commit is contained in:
parent
7cdca727a8
commit
7a7f90cf28
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ impl LineIndex {
|
|||
.get(&ret.line)
|
||||
.into_iter()
|
||||
.flat_map(|it| it.iter())
|
||||
.all(|it| !(it.start < col && col < it.end))
|
||||
.all(|it| col <= it.start || it.end <= col)
|
||||
.then_some(ret)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue