aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/impls.rs
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-02-16 21:10:26 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-02-16 21:10:26 +0000
commitedd4c1d8a6c270fe39ae881c23c722c658c87c32 (patch)
tree0e6b42eaaa3228d7af8d54355d034e698db5c743 /crates/ra_ide_api/src/impls.rs
parent6932b77093fd444def066e80ed37defa2742f2a9 (diff)
parent0242acae5388188c06d826f4aed41eee3e91d018 (diff)
Merge #842
842: Turn ImplBlock into a copy type just containing IDs r=matklad a=flodiebold This makes it more like the other code model types. Also make Module::definition_source/declaration_source return HirFileIds, to make them more like the other source functions. Co-authored-by: Florian Diebold <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src/impls.rs')
-rw-r--r--crates/ra_ide_api/src/impls.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_ide_api/src/impls.rs b/crates/ra_ide_api/src/impls.rs
index 681bd808d..896b47f10 100644
--- a/crates/ra_ide_api/src/impls.rs
+++ b/crates/ra_ide_api/src/impls.rs
@@ -50,8 +50,8 @@ fn impls_for_def(
50 50
51 Some( 51 Some(
52 impls 52 impls
53 .lookup_impl_blocks(db, &ty) 53 .lookup_impl_blocks(&ty)
54 .map(|(module, imp)| NavigationTarget::from_impl_block(db, module, &imp)) 54 .map(|imp| NavigationTarget::from_impl_block(db, imp))
55 .collect(), 55 .collect(),
56 ) 56 )
57} 57}
@@ -68,8 +68,8 @@ fn impls_for_trait(
68 68
69 Some( 69 Some(
70 impls 70 impls
71 .lookup_impl_blocks_for_trait(db, &tr) 71 .lookup_impl_blocks_for_trait(&tr)
72 .map(|(module, imp)| NavigationTarget::from_impl_block(db, module, &imp)) 72 .map(|imp| NavigationTarget::from_impl_block(db, imp))
73 .collect(), 73 .collect(),
74 ) 74 )
75} 75}