@@ -113,9 +113,11 @@ impl Step {
113113
114114 let regex = self . gen_regex ( ) ?;
115115
116+ // TODO: Use "{func_name}" syntax once MSRV bumps above 1.58.
116117 let caller_name =
117118 format_ident ! ( "__cucumber_{}_{}" , self . attr_name, func_name) ;
118119 let awaiting = func. sig . asyncness . map ( |_| quote ! { . await } ) ;
120+ // TODO: Use "{e}" syntax once MSRV bumps above 1.58.
119121 let unwrapping = ( !self . returns_unit ( ) )
120122 . then ( || quote ! { . unwrap_or_else( |e| panic!( "{}" , e) ) } ) ;
121123 let step_caller = quote ! {
@@ -302,6 +304,7 @@ impl Step {
302304 return Err ( syn:: Error :: new ( ty. span ( ) , "Type path expected" ) ) ;
303305 } ;
304306
307+ // TODO: Use "{ident}" syntax once MSRV bumps above 1.58.
305308 let not_found_err = format ! ( "{} not found" , ident) ;
306309 let parsing_err = format ! (
307310 "{} can not be parsed to {}" ,
@@ -371,6 +374,7 @@ impl Step {
371374 }
372375 AttributeArgument :: Regex ( re) => {
373376 drop ( Regex :: new ( re. value ( ) . as_str ( ) ) . map_err ( |e| {
377+ // TODO: Use "{e}" syntax once MSRV bumps above 1.58.
374378 syn:: Error :: new ( re. span ( ) , format ! ( "Invalid regex: {}" , e) )
375379 } ) ?) ;
376380
@@ -455,6 +459,7 @@ impl<'p> Parameters<'p> {
455459 let expr = Expression :: parse ( expr) . map_err ( |e| {
456460 syn:: Error :: new (
457461 expr. span ( ) ,
462+ // TODO: Use "{e}" syntax once MSRV bumps above 1.58.
458463 format ! ( "Incorrect cucumber expression: {}" , e) ,
459464 )
460465 } ) ?;
@@ -580,6 +585,7 @@ impl<'p> Parameters<'p> {
580585 } else {
581586 // Here we use double escaping to properly render `{name}`
582587 // in the assertion message of the generated code.
588+ // TODO: Use "{name}" syntax once MSRV bumps above 1.58.
583589 let assert_msg = format ! (
584590 "Type `{}` doesn't implement a custom parameter \
585591 `{{{{{}}}}}`",
0 commit comments