mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-25 11:17:13 +00:00
Use de morgan
This commit is contained in:
parent
7cdca727a8
commit
7a7f90cf28
@ -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…
x
Reference in New Issue
Block a user