diff options
Diffstat (limited to 'crates/ide_completion/src/completions.rs')
-rw-r--r-- | crates/ide_completion/src/completions.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ide_completion/src/completions.rs b/crates/ide_completion/src/completions.rs index 0f0553a65..dd92bc510 100644 --- a/crates/ide_completion/src/completions.rs +++ b/crates/ide_completion/src/completions.rs | |||
@@ -74,7 +74,7 @@ impl Completions { | |||
74 | pub(crate) fn add_field( | 74 | pub(crate) fn add_field( |
75 | &mut self, | 75 | &mut self, |
76 | ctx: &CompletionContext, | 76 | ctx: &CompletionContext, |
77 | receiver: Option<String>, | 77 | receiver: Option<hir::Name>, |
78 | field: hir::Field, | 78 | field: hir::Field, |
79 | ty: &hir::Type, | 79 | ty: &hir::Type, |
80 | ) { | 80 | ) { |
@@ -85,7 +85,7 @@ impl Completions { | |||
85 | pub(crate) fn add_tuple_field( | 85 | pub(crate) fn add_tuple_field( |
86 | &mut self, | 86 | &mut self, |
87 | ctx: &CompletionContext, | 87 | ctx: &CompletionContext, |
88 | receiver: Option<String>, | 88 | receiver: Option<hir::Name>, |
89 | field: usize, | 89 | field: usize, |
90 | ty: &hir::Type, | 90 | ty: &hir::Type, |
91 | ) { | 91 | ) { |
@@ -141,7 +141,7 @@ impl Completions { | |||
141 | &mut self, | 141 | &mut self, |
142 | ctx: &CompletionContext, | 142 | ctx: &CompletionContext, |
143 | func: hir::Function, | 143 | func: hir::Function, |
144 | receiver: Option<String>, | 144 | receiver: Option<hir::Name>, |
145 | local_name: Option<hir::Name>, | 145 | local_name: Option<hir::Name>, |
146 | ) { | 146 | ) { |
147 | if let Some(item) = render_method(RenderContext::new(ctx), None, receiver, local_name, func) | 147 | if let Some(item) = render_method(RenderContext::new(ctx), None, receiver, local_name, func) |