diff options
author | Aleksey Kladov <[email protected]> | 2019-11-26 19:26:47 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-11-26 19:31:04 +0000 |
commit | cace49e9a79a5fe44cda63964412c5bdce7ee90d (patch) | |
tree | 6cb1c0b0ef3e24ad3a303c407f8335e4503cb619 /crates/ra_hir/src/code_model.rs | |
parent | d770f22c53a88035e2836cc01533dab4223f80d5 (diff) |
Decouple
Diffstat (limited to 'crates/ra_hir/src/code_model.rs')
-rw-r--r-- | crates/ra_hir/src/code_model.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs index a842dfed6..b4b47057d 100644 --- a/crates/ra_hir/src/code_model.rs +++ b/crates/ra_hir/src/code_model.rs | |||
@@ -945,7 +945,7 @@ impl ImplBlock { | |||
945 | } | 945 | } |
946 | pub fn for_trait(db: &impl HirDatabase, krate: Crate, trait_: Trait) -> Vec<ImplBlock> { | 946 | pub fn for_trait(db: &impl HirDatabase, krate: Crate, trait_: Trait) -> Vec<ImplBlock> { |
947 | let impls = db.impls_in_crate(krate.crate_id); | 947 | let impls = db.impls_in_crate(krate.crate_id); |
948 | impls.lookup_impl_blocks_for_trait(trait_).map(Self::from).collect() | 948 | impls.lookup_impl_blocks_for_trait(trait_.id).map(Self::from).collect() |
949 | } | 949 | } |
950 | 950 | ||
951 | pub fn target_trait(&self, db: &impl DefDatabase) -> Option<TypeRef> { | 951 | pub fn target_trait(&self, db: &impl DefDatabase) -> Option<TypeRef> { |