Make resolve_path cancelable

This commit is contained in:
Aleksey Kladov 2018-11-27 16:30:02 +03:00
parent 6bb06addf8
commit 5b0e347f89
2 changed files with 10 additions and 2 deletions

View file

@ -157,7 +157,7 @@ fn complete_path(
return Ok(());
}
path.segments.pop();
let target_module = match module.resolve_path(path) {
let target_module = match module.resolve_path(path)? {
None => return Ok(()),
Some(it) => it,
};