mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +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)
|
.get(&ret.line)
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.flat_map(|it| it.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)
|
.then_some(ret)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue