diff options
author | Kirill Bulatov <[email protected]> | 2020-01-23 19:15:16 +0000 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2020-01-26 22:16:29 +0000 |
commit | f57239729cb9d6f60eb09d8cfd8244066b5e182c (patch) | |
tree | 154410f9df8d13b824c947b7afab9c5f7aa088a8 /crates/ra_assists/src/assists | |
parent | 316795e074dff8f627f8c70c85d236420ecfb3a6 (diff) |
Remove unnecessary lifetime parameter
Diffstat (limited to 'crates/ra_assists/src/assists')
-rw-r--r-- | crates/ra_assists/src/assists/auto_import.rs | 4 |
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 | // ``` |
31 | pub(crate) fn auto_import<'a, F: ImportsLocator<'a>>( | 31 | pub(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>, |