@@ -25,16 +25,16 @@ pub enum OutputMode {
2525#[ derive( Debug ) ]
2626pub struct BootstrapCommand < ' a > {
2727 pub command : & ' a mut Command ,
28- pub failure_behavior : Option < BehaviorOnFailure > ,
28+ pub failure_behavior : BehaviorOnFailure ,
2929 pub output_mode : OutputMode ,
3030}
3131
3232impl < ' a > BootstrapCommand < ' a > {
3333 pub fn delay_failure ( self ) -> Self {
34- Self { failure_behavior : Some ( BehaviorOnFailure :: DelayFail ) , ..self }
34+ Self { failure_behavior : BehaviorOnFailure :: DelayFail , ..self }
3535 }
3636 pub fn fail_fast ( self ) -> Self {
37- Self { failure_behavior : Some ( BehaviorOnFailure :: Exit ) , ..self }
37+ Self { failure_behavior : BehaviorOnFailure :: Exit , ..self }
3838 }
3939 pub fn output_mode ( self , output_mode : OutputMode ) -> Self {
4040 Self { output_mode, ..self }
@@ -43,6 +43,10 @@ impl<'a> BootstrapCommand<'a> {
4343
4444impl < ' a > From < & ' a mut Command > for BootstrapCommand < ' a > {
4545 fn from ( command : & ' a mut Command ) -> Self {
46- Self { command, failure_behavior : None , output_mode : OutputMode :: SuppressOnSuccess }
46+ Self {
47+ command,
48+ failure_behavior : BehaviorOnFailure :: Exit ,
49+ output_mode : OutputMode :: SuppressOnSuccess ,
50+ }
4751 }
4852}
0 commit comments