@@ -19,7 +19,7 @@ use ra_text_edit::TextEditBuilder;
1919
2020use crate :: {
2121 assist_config:: { AssistConfig , SnippetCap } ,
22- Assist , AssistId , AssistKind , GroupLabel , ResolvedAssist ,
22+ Assist , AssistId , GroupLabel , ResolvedAssist ,
2323} ;
2424
2525/// `AssistContext` allows to apply an assist or check if it could be applied.
@@ -135,24 +135,22 @@ impl Assists {
135135 pub ( crate ) fn add (
136136 & mut self ,
137137 id : AssistId ,
138- kind : AssistKind ,
139138 label : impl Into < String > ,
140139 target : TextRange ,
141140 f : impl FnOnce ( & mut AssistBuilder ) ,
142141 ) -> Option < ( ) > {
143- let label = Assist :: new ( id, kind , label. into ( ) , None , target) ;
142+ let label = Assist :: new ( id, label. into ( ) , None , target) ;
144143 self . add_impl ( label, f)
145144 }
146145 pub ( crate ) fn add_group (
147146 & mut self ,
148147 group : & GroupLabel ,
149148 id : AssistId ,
150- kind : AssistKind ,
151149 label : impl Into < String > ,
152150 target : TextRange ,
153151 f : impl FnOnce ( & mut AssistBuilder ) ,
154152 ) -> Option < ( ) > {
155- let label = Assist :: new ( id, kind , label. into ( ) , Some ( group. clone ( ) ) , target) ;
153+ let label = Assist :: new ( id, label. into ( ) , Some ( group. clone ( ) ) , target) ;
156154 self . add_impl ( label, f)
157155 }
158156 fn add_impl ( & mut self , label : Assist , f : impl FnOnce ( & mut AssistBuilder ) ) -> Option < ( ) > {
0 commit comments