File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,8 @@ impl<'a> AssistCtx<'a> {
116
116
}
117
117
118
118
pub ( crate ) fn add_assist_group ( self , group_name : impl Into < String > ) -> AssistGroup < ' a > {
119
- AssistGroup { ctx : self , group : group_name. into ( ) , assists : Vec :: new ( ) }
119
+ let group = GroupLabel ( group_name. into ( ) ) ;
120
+ AssistGroup { ctx : self , group, assists : Vec :: new ( ) }
120
121
}
121
122
122
123
pub ( crate ) fn token_at_offset ( & self ) -> TokenAtOffset < SyntaxToken > {
@@ -146,7 +147,7 @@ impl<'a> AssistCtx<'a> {
146
147
147
148
pub ( crate ) struct AssistGroup < ' a > {
148
149
ctx : AssistCtx < ' a > ,
149
- group : String ,
150
+ group : GroupLabel ,
150
151
assists : Vec < AssistInfo > ,
151
152
}
152
153
@@ -159,7 +160,7 @@ impl<'a> AssistGroup<'a> {
159
160
) {
160
161
let label = AssistLabel :: new ( id, label. into ( ) ) ;
161
162
162
- let mut info = AssistInfo :: new ( label) . with_group ( GroupLabel ( self . group . clone ( ) ) ) ;
163
+ let mut info = AssistInfo :: new ( label) . with_group ( self . group . clone ( ) ) ;
163
164
if self . ctx . should_compute_edit {
164
165
let action = {
165
166
let mut edit = ActionBuilder :: new ( & self . ctx ) ;
You can’t perform that action at this time.
0 commit comments