diff options
author | Aleksey Kladov <[email protected]> | 2018-12-21 21:52:02 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-12-21 21:52:02 +0000 |
commit | ccca5aae43a27c94180bb099bcc09bb6c29c2ea3 (patch) | |
tree | 3d6ce58a0e87cb89ef4ca2df29e5f25bac86d0b8 /crates/ra_analysis/src/completion/complete_path.rs | |
parent | 2136e75c0bce090d104bb5b5006e48e42fb22a0a (diff) |
scope-based copmletions on original file
Diffstat (limited to 'crates/ra_analysis/src/completion/complete_path.rs')
-rw-r--r-- | crates/ra_analysis/src/completion/complete_path.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_analysis/src/completion/complete_path.rs b/crates/ra_analysis/src/completion/complete_path.rs index d04503e46..8374ec346 100644 --- a/crates/ra_analysis/src/completion/complete_path.rs +++ b/crates/ra_analysis/src/completion/complete_path.rs | |||
@@ -9,8 +9,8 @@ pub(super) fn complete_path(acc: &mut Completions, ctx: &SyntaxContext) -> Cance | |||
9 | _ => return Ok(()), | 9 | _ => return Ok(()), |
10 | }; | 10 | }; |
11 | let def_id = match module.resolve_path(ctx.db, path)? { | 11 | let def_id = match module.resolve_path(ctx.db, path)? { |
12 | None => return Ok(()), | ||
13 | Some(it) => it, | 12 | Some(it) => it, |
13 | None => return Ok(()), | ||
14 | }; | 14 | }; |
15 | let target_module = match def_id.resolve(ctx.db)? { | 15 | let target_module = match def_id.resolve(ctx.db)? { |
16 | hir::Def::Module(it) => it, | 16 | hir::Def::Module(it) => it, |