mirror of
https://github.com/fluencelabs/aquavm
synced 2025-07-05 09:31:34 +00:00
Refactor execution errors (#198)
This commit is contained in:
@ -189,7 +189,7 @@ fn find_closest<'d>(
|
||||
) -> Option<&'d RefCell<Stream>> {
|
||||
// descriptors are placed in a order of decreasing scopes, so it's enough to get the latest suitable
|
||||
for descriptor in descriptors.rev() {
|
||||
if descriptor.span.contains(position) {
|
||||
if descriptor.span.contains_position(position) {
|
||||
return Some(&descriptor.stream);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user