mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
Use all not instead of find is none
This commit is contained in:
parent
e4d053e794
commit
7cdca727a8
1 changed files with 1 additions and 2 deletions
|
@ -161,8 +161,7 @@ impl LineIndex {
|
|||
.get(&ret.line)
|
||||
.into_iter()
|
||||
.flat_map(|it| it.iter())
|
||||
.find(|it| it.start < col && col < it.end)
|
||||
.is_none()
|
||||
.all(|it| !(it.start < col && col < it.end))
|
||||
.then_some(ret)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue