aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/completion/complete_path.rs
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2019-01-30 21:41:44 +0000
committerFlorian Diebold <[email protected]>2019-02-01 21:54:30 +0000
commitd571d26955148befd6986008a5112fff3a901c43 (patch)
tree2668177168de835fd88cfe21f44d307ced7dfa94 /crates/ra_ide_api/src/completion/complete_path.rs
parentd3df80dfe41e4e3ab7644ae576119a264ba0e7f1 (diff)
Make the Resolution variants tuple variants
Diffstat (limited to 'crates/ra_ide_api/src/completion/complete_path.rs')
-rw-r--r--crates/ra_ide_api/src/completion/complete_path.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_path.rs b/crates/ra_ide_api/src/completion/complete_path.rs
index 5b89c64ad..8e0f6a79e 100644
--- a/crates/ra_ide_api/src/completion/complete_path.rs
+++ b/crates/ra_ide_api/src/completion/complete_path.rs
@@ -12,7 +12,7 @@ pub(super) fn complete_path(acc: &mut Completions, ctx: &CompletionContext) {
12 _ => return, 12 _ => return,
13 }; 13 };
14 let def = match ctx.resolver.resolve_path(ctx.db, &path).take_types() { 14 let def = match ctx.resolver.resolve_path(ctx.db, &path).take_types() {
15 Some(Resolution::Def { def }) => def, 15 Some(Resolution::Def(def)) => def,
16 _ => return, 16 _ => return,
17 }; 17 };
18 match def { 18 match def {
@@ -24,7 +24,7 @@ pub(super) fn complete_path(acc: &mut Completions, ctx: &CompletionContext) {
24 ctx.source_range(), 24 ctx.source_range(),
25 name.to_string(), 25 name.to_string(),
26 ) 26 )
27 .from_resolution(ctx, &res.def.map(|def| hir::Resolution::Def { def })) 27 .from_resolution(ctx, &res.def.map(hir::Resolution::Def))
28 .add_to(acc); 28 .add_to(acc);
29 } 29 }
30 } 30 }