aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists/src/assists/auto_import.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_assists/src/assists/auto_import.rs')
-rw-r--r--crates/ra_assists/src/assists/auto_import.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_assists/src/assists/auto_import.rs b/crates/ra_assists/src/assists/auto_import.rs
index fe226521e..ae216944b 100644
--- a/crates/ra_assists/src/assists/auto_import.rs
+++ b/crates/ra_assists/src/assists/auto_import.rs
@@ -28,7 +28,7 @@ use crate::{
28// let map = HashMap<|>::new(); 28// let map = HashMap<|>::new();
29// } 29// }
30// ``` 30// ```
31pub(crate) fn auto_import<'a, F: ImportsLocator<'a>>( 31pub(crate) fn auto_import<F: ImportsLocator>(
32 ctx: AssistCtx<impl HirDatabase>, 32 ctx: AssistCtx<impl HirDatabase>,
33 imports_locator: &mut F, 33 imports_locator: &mut F,
34) -> Option<Assist> { 34) -> Option<Assist> {
@@ -108,7 +108,7 @@ mod tests {
108 } 108 }
109 } 109 }
110 110
111 impl<'a> ImportsLocator<'_> for TestImportsLocator<'_> { 111 impl<'a> ImportsLocator for TestImportsLocator<'a> {
112 fn find_imports( 112 fn find_imports(
113 &mut self, 113 &mut self,
114 _: hir::InFile<&ast::NameRef>, 114 _: hir::InFile<&ast::NameRef>,