File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -266,18 +266,19 @@ fn generate_changelog() -> Result<()> {
266
266
let template = Template :: new ( "test" , changelog_config. body . unwrap ( ) , false ) ?;
267
267
268
268
writeln ! ( out, "{}" , changelog_config. header. unwrap( ) ) . unwrap ( ) ;
269
+ let text_processors = [ TextProcessor {
270
+ pattern : Regex :: new ( "<DATE>" ) . unwrap ( ) ,
271
+ replace : Some ( String :: from ( "2023" ) ) ,
272
+ replace_command : None ,
273
+ } ] ;
269
274
for release in releases {
270
275
write ! (
271
276
out,
272
277
"{}" ,
273
278
template. render(
274
279
& release,
275
280
Option :: <HashMap <& str , String >>:: None . as_ref( ) ,
276
- & [ TextProcessor {
277
- pattern: Regex :: new( "<DATE>" ) . unwrap( ) ,
278
- replace: Some ( String :: from( "2023" ) ) ,
279
- replace_command: None ,
280
- } ]
281
+ & text_processors
281
282
) ?
282
283
)
283
284
. unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments