Skip to content

Commit 1d88b84

Browse files
committed
Cargo fmt
1 parent 1a2d35b commit 1d88b84

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

src/bin/activate.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,11 @@ pub async fn activate(
390390

391391
debug!("Running activation script");
392392

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+
};
394398

395399
let activate_status = match Command::new(format!("{}/deploy-rs-activate", activation_location))
396400
.env("PROFILE", activation_location)

src/bin/deploy.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,8 @@ async fn run_deploy(
560560
// Rollbacks adhere to the global seeting to auto_rollback and secondary
561561
// the profile's configuration
562562
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+
{
564565
error!("{}", e);
565566
if dry_activate {
566567
info!("dry run, not rolling back");
@@ -613,11 +614,10 @@ async fn run() -> Result<(), RunError> {
613614
deploy::LoggerType::Deploy,
614615
)?;
615616

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())]);
621621

622622
let deploy_flakes: Vec<DeployFlake> = deploys
623623
.iter()

0 commit comments

Comments
 (0)