@@ -174,7 +174,6 @@ fn generate_lint_mod_file(tool: &ToolConfig) -> String {
174174 let partial_config_struct = Ident :: new ( & tool. partial_config_struct_name ( ) , Span :: call_site ( ) ) ;
175175 let generated_file = tool. generated_file ( ) . trim_end_matches ( ".rs" ) ;
176176 let generated_file_ident = Ident :: new ( generated_file, Span :: call_site ( ) ) ;
177- let tool_name = tool. name ;
178177
179178 let content = quote ! {
180179 //! Generated file, do not edit by hand, see `xtask/codegen`
@@ -192,19 +191,19 @@ fn generate_lint_mod_file(tool: &ToolConfig) -> String {
192191 #[ partial( cfg_attr( feature = "schema" , derive( schemars:: JsonSchema ) ) ) ]
193192 #[ partial( serde( rename_all = "camelCase" , default , deny_unknown_fields) ) ]
194193 pub struct #config_struct {
195- # [ doc = concat! ( " if `false`, it disables the feature and the " , #tool_name , " won't be executed. `true` by default" ) ]
194+ /// if `false`, it disables the feature and the linter won't be executed. `true` by default
196195 #[ partial( bpaf( hide) ) ]
197196 pub enabled: bool ,
198197
199198 /// List of rules
200199 #[ partial( bpaf( pure( Default :: default ( ) ) , optional, hide) ) ]
201200 pub rules: Rules ,
202201
203- # [ doc = concat! ( " A list of Unix shell style patterns. The " , #tool_name , " will ignore files/folders that will match these patterns." ) ]
202+ /// A list of Unix shell style patterns. The linter will ignore files/folders that will match these patterns.
204203 #[ partial( bpaf( hide) ) ]
205204 pub ignore: StringSet ,
206205
207- # [ doc = concat! ( " A list of Unix shell style patterns. The " , #tool_name , " will include files/folders that will match these patterns." ) ]
206+ /// A list of Unix shell style patterns. The linter will include files/folders that will match these patterns.
208207 #[ partial( bpaf( hide) ) ]
209208 pub include: StringSet ,
210209 }
0 commit comments