@@ -79,7 +79,7 @@ impl StepPath {
7979 self . depth ( ) == 1
8080 }
8181
82- /// Returns `true` the the path is pointing to a prologue of a pipeline.
82+ /// Returns `true` if the path is pointing to a prologue of a pipeline.
8383 pub ( crate ) fn is_prologue ( & self ) -> bool {
8484 self . leaf ( ) == PROLOGUE_INDEX
8585 }
@@ -426,11 +426,11 @@ impl<'a, P: Platform> StepNavigator<'a, P> {
426426 let is_last = position + 1 >= enclosing_pipeline. steps ( ) . len ( ) ;
427427
428428 match ( self . behavior ( ) , is_last) {
429- ( Behavior :: Loop , true ) => {
429+ ( Loop , true ) => {
430430 // we are the last step in a loop pipeline, go to first step.
431431 Self ( self . 0 . replace_leaf ( STEP0_INDEX ) , self . 1 . clone ( ) ) . enter ( )
432432 }
433- ( Behavior :: Once , true ) => {
433+ ( Once , true ) => {
434434 // we are last step in a non-loop pipeline, this is the end of a
435435 // single iteration loop.
436436 self . after_loop ( )
@@ -469,7 +469,7 @@ impl<P: Platform> StepNavigator<'_, P> {
469469 fn behavior ( & self ) -> Behavior {
470470 // top-level pipelines are always `Once`.
471471 if self . 0 . is_toplevel ( ) {
472- return Behavior :: Once ;
472+ return Once ;
473473 }
474474
475475 // to identify the behavior of the pipeline that contains the current step
@@ -560,7 +560,7 @@ impl<P: Platform> StepNavigator<'_, P> {
560560 }
561561 }
562562
563- /// Finds the next step to run afer the prologue of the current pipeline.
563+ /// Finds the next step to run after the prologue of the current pipeline.
564564 fn after_prologue ( self ) -> Option < Self > {
565565 if self . pipeline ( ) . steps ( ) . is_empty ( ) {
566566 // no steps, go to epilogue.
@@ -583,8 +583,8 @@ impl<P: Platform> StepNavigator<'_, P> {
583583 // is last step in the enclosing pipeline?
584584 if step_index + 1 >= enclosing_pipeline. steps ( ) . len ( ) {
585585 match ancestor. behavior ( ) {
586- Behavior :: Loop => ancestor. after_prologue ( ) ,
587- Behavior :: Once => ancestor. after_loop ( ) ,
586+ Loop => ancestor. after_prologue ( ) ,
587+ Once => ancestor. after_loop ( ) ,
588588 }
589589 } else {
590590 // there are more items in the enclosing pipeline, so we can just
@@ -681,7 +681,7 @@ mod test {
681681 Pipeline :: <Ethereum >:: default ( ) . with_step( Step1 ) ,
682682 StepPath :: step0( ) ,
683683 // name autogenerated from source location
684- vec![ format!( "navi_{}" , ( line!( ) - 3 ) ) ]
684+ vec![ format!( "navi_{}" , line!( ) - 3 ) ]
685685 ) ;
686686
687687 // one step with prologue
@@ -773,17 +773,17 @@ mod test {
773773 . with_step ( Step2 )
774774 . with_step ( Step3 ) ;
775775 let navigator = StepNavigator :: entrypoint ( & pipeline) . unwrap ( ) ;
776- assert_eq ! ( navigator. behavior( ) , Behavior :: Once ) ;
776+ assert_eq ! ( navigator. behavior( ) , Once ) ;
777777
778778 let pipeline =
779779 Pipeline :: < Ethereum > :: default ( ) . with_pipeline ( Loop , ( Step1 , ) ) ;
780780 let navigator = StepNavigator :: entrypoint ( & pipeline) . unwrap ( ) ;
781- assert_eq ! ( navigator. behavior( ) , Behavior :: Loop ) ;
781+ assert_eq ! ( navigator. behavior( ) , Loop ) ;
782782
783783 let pipeline =
784784 Pipeline :: < Ethereum > :: default ( ) . with_pipeline ( Once , ( Step1 , ) ) ;
785785 let navigator = StepNavigator :: entrypoint ( & pipeline) . unwrap ( ) ;
786- assert_eq ! ( navigator. behavior( ) , Behavior :: Once ) ;
786+ assert_eq ! ( navigator. behavior( ) , Once ) ;
787787 }
788788
789789 #[ test]
0 commit comments