mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
remove Cancelable from source binders
This commit is contained in:
parent
a36b2cf377
commit
11f3c8afb2
16 changed files with 68 additions and 90 deletions
|
@ -8,7 +8,7 @@ pub(crate) fn parent_module(
|
|||
db: &RootDatabase,
|
||||
position: FilePosition,
|
||||
) -> Cancelable<Vec<NavigationTarget>> {
|
||||
let module = match hir::source_binder::module_from_position(db, position)? {
|
||||
let module = match hir::source_binder::module_from_position(db, position) {
|
||||
None => return Ok(Vec::new()),
|
||||
Some(it) => it,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue