aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_assists')
-rw-r--r--crates/ra_assists/src/assist_ctx.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_assists/src/assist_ctx.rs b/crates/ra_assists/src/assist_ctx.rs
index d6f585d0e..1020fed29 100644
--- a/crates/ra_assists/src/assist_ctx.rs
+++ b/crates/ra_assists/src/assist_ctx.rs
@@ -116,7 +116,7 @@ impl<'a> AssistCtx<'a> {
116 } 116 }
117 117
118 pub(crate) fn add_assist_group(self, group_name: impl Into<String>) -> AssistGroup<'a> { 118 pub(crate) fn add_assist_group(self, group_name: impl Into<String>) -> AssistGroup<'a> {
119 AssistGroup { ctx: self, group_name: group_name.into(), assists: Vec::new() } 119 AssistGroup { ctx: self, group: group_name.into(), assists: Vec::new() }
120 } 120 }
121 121
122 pub(crate) fn token_at_offset(&self) -> TokenAtOffset<SyntaxToken> { 122 pub(crate) fn token_at_offset(&self) -> TokenAtOffset<SyntaxToken> {
@@ -146,7 +146,7 @@ impl<'a> AssistCtx<'a> {
146 146
147pub(crate) struct AssistGroup<'a> { 147pub(crate) struct AssistGroup<'a> {
148 ctx: AssistCtx<'a>, 148 ctx: AssistCtx<'a>,
149 group_name: String, 149 group: String,
150 assists: Vec<AssistInfo>, 150 assists: Vec<AssistInfo>,
151} 151}
152 152
@@ -159,7 +159,7 @@ impl<'a> AssistGroup<'a> {
159 ) { 159 ) {
160 let label = AssistLabel::new(id, label.into()); 160 let label = AssistLabel::new(id, label.into());
161 161
162 let mut info = AssistInfo::new(label).with_group(GroupLabel(self.group_name.clone())); 162 let mut info = AssistInfo::new(label).with_group(GroupLabel(self.group.clone()));
163 if self.ctx.should_compute_edit { 163 if self.ctx.should_compute_edit {
164 let action = { 164 let action = {
165 let mut edit = ActionBuilder::new(&self.ctx); 165 let mut edit = ActionBuilder::new(&self.ctx);