diff options
Diffstat (limited to 'crates/ra_hir_def/src/find_path.rs')
-rw-r--r-- | crates/ra_hir_def/src/find_path.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_hir_def/src/find_path.rs b/crates/ra_hir_def/src/find_path.rs index 07ca74ec3..d58ac6ba5 100644 --- a/crates/ra_hir_def/src/find_path.rs +++ b/crates/ra_hir_def/src/find_path.rs | |||
@@ -44,12 +44,12 @@ impl ModPath { | |||
44 | 44 | ||
45 | /// Find a path that can be used to refer to a certain item. This can depend on | 45 | /// Find a path that can be used to refer to a certain item. This can depend on |
46 | /// *from where* you're referring to the item, hence the `from` parameter. | 46 | /// *from where* you're referring to the item, hence the `from` parameter. |
47 | pub fn find_path(db: &impl DefDatabase, item: ItemInNs, from: ModuleId) -> Option<ModPath> { | 47 | pub fn find_path(db: &dyn DefDatabase, item: ItemInNs, from: ModuleId) -> Option<ModPath> { |
48 | find_path_inner(db, item, from, MAX_PATH_LEN) | 48 | find_path_inner(db, item, from, MAX_PATH_LEN) |
49 | } | 49 | } |
50 | 50 | ||
51 | fn find_path_inner( | 51 | fn find_path_inner( |
52 | db: &impl DefDatabase, | 52 | db: &dyn DefDatabase, |
53 | item: ItemInNs, | 53 | item: ItemInNs, |
54 | from: ModuleId, | 54 | from: ModuleId, |
55 | max_len: usize, | 55 | max_len: usize, |
@@ -165,7 +165,7 @@ fn select_best_path(old_path: ModPath, new_path: ModPath) -> ModPath { | |||
165 | } | 165 | } |
166 | 166 | ||
167 | fn find_importable_locations( | 167 | fn find_importable_locations( |
168 | db: &impl DefDatabase, | 168 | db: &dyn DefDatabase, |
169 | item: ItemInNs, | 169 | item: ItemInNs, |
170 | from: ModuleId, | 170 | from: ModuleId, |
171 | ) -> Vec<(ModuleId, Name)> { | 171 | ) -> Vec<(ModuleId, Name)> { |
@@ -195,7 +195,7 @@ fn find_importable_locations( | |||
195 | /// Note that the crate doesn't need to be the one in which the item is defined; | 195 | /// Note that the crate doesn't need to be the one in which the item is defined; |
196 | /// it might be re-exported in other crates. | 196 | /// it might be re-exported in other crates. |
197 | fn importable_locations_in_crate( | 197 | fn importable_locations_in_crate( |
198 | db: &impl DefDatabase, | 198 | db: &dyn DefDatabase, |
199 | item: ItemInNs, | 199 | item: ItemInNs, |
200 | krate: CrateId, | 200 | krate: CrateId, |
201 | ) -> Vec<(ModuleId, Name, Visibility)> { | 201 | ) -> Vec<(ModuleId, Name, Visibility)> { |