diff options
Diffstat (limited to 'crates/ide_completion/src/render/function.rs')
-rw-r--r-- | crates/ide_completion/src/render/function.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ide_completion/src/render/function.rs b/crates/ide_completion/src/render/function.rs index b3ba6114d..3ec77ca0f 100644 --- a/crates/ide_completion/src/render/function.rs +++ b/crates/ide_completion/src/render/function.rs | |||
@@ -26,7 +26,7 @@ pub(crate) fn render_fn<'a>( | |||
26 | pub(crate) fn render_method<'a>( | 26 | pub(crate) fn render_method<'a>( |
27 | ctx: RenderContext<'a>, | 27 | ctx: RenderContext<'a>, |
28 | import_to_add: Option<ImportEdit>, | 28 | import_to_add: Option<ImportEdit>, |
29 | receiver: Option<String>, | 29 | receiver: Option<hir::Name>, |
30 | local_name: Option<hir::Name>, | 30 | local_name: Option<hir::Name>, |
31 | fn_: hir::Function, | 31 | fn_: hir::Function, |
32 | ) -> Option<CompletionItem> { | 32 | ) -> Option<CompletionItem> { |
@@ -38,7 +38,7 @@ pub(crate) fn render_method<'a>( | |||
38 | struct FunctionRender<'a> { | 38 | struct FunctionRender<'a> { |
39 | ctx: RenderContext<'a>, | 39 | ctx: RenderContext<'a>, |
40 | name: String, | 40 | name: String, |
41 | receiver: Option<String>, | 41 | receiver: Option<hir::Name>, |
42 | func: hir::Function, | 42 | func: hir::Function, |
43 | ast_node: Fn, | 43 | ast_node: Fn, |
44 | is_method: bool, | 44 | is_method: bool, |
@@ -47,7 +47,7 @@ struct FunctionRender<'a> { | |||
47 | impl<'a> FunctionRender<'a> { | 47 | impl<'a> FunctionRender<'a> { |
48 | fn new( | 48 | fn new( |
49 | ctx: RenderContext<'a>, | 49 | ctx: RenderContext<'a>, |
50 | receiver: Option<String>, | 50 | receiver: Option<hir::Name>, |
51 | local_name: Option<hir::Name>, | 51 | local_name: Option<hir::Name>, |
52 | fn_: hir::Function, | 52 | fn_: hir::Function, |
53 | is_method: bool, | 53 | is_method: bool, |