File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -390,7 +390,11 @@ pub async fn activate(
390
390
391
391
debug ! ( "Running activation script" ) ;
392
392
393
- let activation_location = if dry_activate { & closure } else { & profile_path } ;
393
+ let activation_location = if dry_activate {
394
+ & closure
395
+ } else {
396
+ & profile_path
397
+ } ;
394
398
395
399
let activate_status = match Command :: new ( format ! ( "{}/deploy-rs-activate" , activation_location) )
396
400
. env ( "PROFILE" , activation_location)
Original file line number Diff line number Diff line change @@ -560,7 +560,8 @@ async fn run_deploy(
560
560
// Rollbacks adhere to the global seeting to auto_rollback and secondary
561
561
// the profile's configuration
562
562
for ( _, deploy_data, deploy_defs) in & parts {
563
- if let Err ( e) = deploy:: deploy:: deploy_profile ( deploy_data, deploy_defs, dry_activate) . await {
563
+ if let Err ( e) = deploy:: deploy:: deploy_profile ( deploy_data, deploy_defs, dry_activate) . await
564
+ {
564
565
error ! ( "{}" , e) ;
565
566
if dry_activate {
566
567
info ! ( "dry run, not rolling back" ) ;
@@ -613,11 +614,10 @@ async fn run() -> Result<(), RunError> {
613
614
deploy:: LoggerType :: Deploy ,
614
615
) ?;
615
616
616
- let deploys = opts. clone ( ) . targets . unwrap_or_else ( || {
617
- opts. clone ( )
618
- . target
619
- . unwrap_or ( Some ( vec ! [ "." . to_string( ) ] ) )
620
- } ) ;
617
+ let deploys = opts
618
+ . clone ( )
619
+ . targets
620
+ . unwrap_or_else ( || vec ! [ opts. clone( ) . target. unwrap_or( "." . to_string( ) ) ] ) ;
621
621
622
622
let deploy_flakes: Vec < DeployFlake > = deploys
623
623
. iter ( )
You can’t perform that action at this time.
0 commit comments