aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authornotgne22020-10-30 19:30:40 -0700
committernotgne22020-10-30 19:30:40 -0700
commit3afb61665d57fe14a4045bd8678690c82256f9f3 (patch)
treec1947ad66e3d49e9f64cf5a61d5dd729b4c7a7b3 /src
parent8e82b2a7c9fe1ff08459ee4b7d9da5a25293fef3 (diff)
Abbreviate match expression with unwrap_or()
Diffstat (limited to 'src')
-rw-r--r--src/utils/push.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/utils/push.rs b/src/utils/push.rs
index c79a004..16bf8e7 100644
--- a/src/utils/push.rs
+++ b/src/utils/push.rs
@@ -63,10 +63,7 @@ pub async fn push_profile(
build_command = match (keep_result, supports_flakes) {
(true, _) => {
- let result_path = match result_path {
- Some(x) => x,
- None => "./.deploy-gc",
- };
+ let result_path = result_path.unwrap_or("./.deploy-gc");
build_command.arg("--out-link").arg(format!(
"{}/{}/{}",