@@ -140,14 +140,14 @@ where
140
140
141
141
async fn handle_event (
142
142
& mut self ,
143
- ev : parser:: Result < Event < event:: Cucumber < W > > > ,
144
- opts : & Self :: Cli ,
143
+ event : parser:: Result < Event < event:: Cucumber < W > > > ,
144
+ cli : & Self :: Cli ,
145
145
) {
146
146
use event:: { Cucumber , Feature } ;
147
147
148
- self . apply_cli ( * opts ) ;
148
+ self . apply_cli ( * cli ) ;
149
149
150
- match ev . map ( Event :: into_inner) {
150
+ match event . map ( Event :: into_inner) {
151
151
Err ( err) => self . parsing_failed ( & err) ,
152
152
Ok (
153
153
Cucumber :: Started
@@ -263,7 +263,7 @@ impl<Out: io::Write> Basic<Out> {
263
263
error : impl Display ,
264
264
) -> io:: Result < ( ) > {
265
265
self . output
266
- . write_line ( & self . styles . err ( format ! ( "Failed to parse: {error}" ) ) )
266
+ . write_line ( self . styles . err ( format ! ( "Failed to parse: {error}" ) ) )
267
267
}
268
268
269
269
/// Outputs the [started] [`Feature`].
@@ -275,7 +275,7 @@ impl<Out: io::Write> Basic<Out> {
275
275
feature : & gherkin:: Feature ,
276
276
) -> io:: Result < ( ) > {
277
277
let out = format ! ( "{}: {}" , feature. keyword, feature. name) ;
278
- self . output . write_line ( & self . styles . ok ( out) )
278
+ self . output . write_line ( self . styles . ok ( out) )
279
279
}
280
280
281
281
/// Outputs the [`Rule`]'s [started]/[scenario]/[finished] event.
@@ -321,7 +321,7 @@ impl<Out: io::Write> Basic<Out> {
321
321
indent = " " . repeat( self . indent)
322
322
) ;
323
323
self . indent += 2 ;
324
- self . output . write_line ( & self . styles . ok ( out) )
324
+ self . output . write_line ( self . styles . ok ( out) )
325
325
}
326
326
327
327
/// Outputs the [`Scenario`]'s [started]/[background]/[step] event.
@@ -404,7 +404,7 @@ impl<Out: io::Write> Basic<Out> {
404
404
}
405
405
} ;
406
406
407
- self . output . write_line ( & style ( format ! (
407
+ self . output . write_line ( style ( format ! (
408
408
"{indent}✘ Scenario's {which} hook failed {}:{}:{}\n \
409
409
{indent} Captured output: {}{}",
410
410
feat. path
@@ -448,15 +448,15 @@ impl<Out: io::Write> Basic<Out> {
448
448
retries. current,
449
449
retries. left + retries. current,
450
450
) ;
451
- self . output . write_line ( & self . styles . retry ( out) )
451
+ self . output . write_line ( self . styles . retry ( out) )
452
452
} else {
453
453
let out = format ! (
454
454
"{}{}: {}" ,
455
455
" " . repeat( self . indent) ,
456
456
scenario. keyword,
457
457
scenario. name,
458
458
) ;
459
- self . output . write_line ( & self . styles . ok ( out) )
459
+ self . output . write_line ( self . styles . ok ( out) )
460
460
}
461
461
}
462
462
@@ -598,7 +598,7 @@ impl<Out: io::Write> Basic<Out> {
598
598
. unwrap_or_default ( ) ,
599
599
) ;
600
600
601
- self . output . write_line ( & style ( format ! (
601
+ self . output . write_line ( style ( format ! (
602
602
"{indent}{step_keyword}{step_value}{doc_str}{step_table}" ,
603
603
indent = " " . repeat( self . indent. saturating_sub( 3 ) ) ,
604
604
) ) )
@@ -614,7 +614,7 @@ impl<Out: io::Write> Basic<Out> {
614
614
step : & gherkin:: Step ,
615
615
) -> io:: Result < ( ) > {
616
616
self . clear_last_lines_if_term_present ( ) ?;
617
- self . output . write_line ( & self . styles . skipped ( format ! (
617
+ self . output . write_line ( self . styles . skipped ( format ! (
618
618
"{indent}? {}{}{}{}\n \
619
619
{indent} Step skipped: {}:{}:{}",
620
620
step. keyword,
@@ -877,7 +877,7 @@ impl<Out: io::Write> Basic<Out> {
877
877
. unwrap_or_default ( ) ,
878
878
) ;
879
879
880
- self . output . write_line ( & style ( format ! (
880
+ self . output . write_line ( style ( format ! (
881
881
"{step_keyword}{step_value}{doc_str}{step_table}" ,
882
882
) ) )
883
883
}
@@ -893,7 +893,7 @@ impl<Out: io::Write> Basic<Out> {
893
893
step : & gherkin:: Step ,
894
894
) -> io:: Result < ( ) > {
895
895
self . clear_last_lines_if_term_present ( ) ?;
896
- self . output . write_line ( & self . styles . skipped ( format ! (
896
+ self . output . write_line ( self . styles . skipped ( format ! (
897
897
"{indent}?> {}{}{}{}\n \
898
898
{indent} Background step failed: {}:{}:{}",
899
899
step. keyword,
0 commit comments