diff options
author | Lukas Wirth <[email protected]> | 2021-05-28 13:38:09 +0100 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2021-05-31 13:55:16 +0100 |
commit | d346f5bf75bfe3c7dc357c748c257569c0fb23c3 (patch) | |
tree | 4ced7fd961a1f98467506dd4847fd877b75d2e47 /crates/ide_completion/src/completions.rs | |
parent | ca49fbe0a1f6acc1352f6628c36bb7dfe3a950e5 (diff) |
Less strings, more hir::Names
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) |