diff options
author | Aleksey Kladov <[email protected]> | 2019-01-25 07:16:28 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-25 07:16:28 +0000 |
commit | bc77f91cf6bec95176b32d0794775e5f00c25367 (patch) | |
tree | 91a504f18b8f23bc21c105d2deeba1a3d40d5fac /crates/ra_ide_api/src | |
parent | e884ab05c216fc4a4a35d6267d08519dc5dda41d (diff) |
rename def_id -> def
Diffstat (limited to 'crates/ra_ide_api/src')
-rw-r--r-- | crates/ra_ide_api/src/completion/completion_item.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/ra_ide_api/src/completion/completion_item.rs b/crates/ra_ide_api/src/completion/completion_item.rs index 3ba6c33ee..b2b047766 100644 --- a/crates/ra_ide_api/src/completion/completion_item.rs +++ b/crates/ra_ide_api/src/completion/completion_item.rs | |||
@@ -209,10 +209,7 @@ impl Builder { | |||
209 | ctx: &CompletionContext, | 209 | ctx: &CompletionContext, |
210 | resolution: &hir::Resolution, | 210 | resolution: &hir::Resolution, |
211 | ) -> Builder { | 211 | ) -> Builder { |
212 | let def = resolution | 212 | let def = resolution.def.take_types().or(resolution.def.take_values()); |
213 | .def_id | ||
214 | .take_types() | ||
215 | .or(resolution.def_id.take_values()); | ||
216 | let def = match def { | 213 | let def = match def { |
217 | None => return self, | 214 | None => return self, |
218 | Some(it) => it, | 215 | Some(it) => it, |