From 3afb61665d57fe14a4045bd8678690c82256f9f3 Mon Sep 17 00:00:00 2001 From: notgne2 Date: Fri, 30 Oct 2020 19:30:40 -0700 Subject: Abbreviate match expression with unwrap_or() --- src/utils/push.rs | 5 +---- 1 file changed, 1 insertion(+), 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!( "{}/{}/{}", -- cgit v1.2.3