From bdad3c9efe4f6b37191f2972ebc6e9115ce458a9 Mon Sep 17 00:00:00 2001 From: Folkert Date: Mon, 4 Sep 2023 20:56:08 +0200 Subject: [PATCH] cleanup --- crates/compiler/build/src/link.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/compiler/build/src/link.rs b/crates/compiler/build/src/link.rs index f34659fd6c5..04c0ca303e0 100644 --- a/crates/compiler/build/src/link.rs +++ b/crates/compiler/build/src/link.rs @@ -464,11 +464,11 @@ pub fn rebuild_host( platform_main_roc.with_file_name(legacy_host_filename(target).unwrap()) }; - let env_path = env::var("PATH").unwrap_or_else(|_| "".to_string()); - let env_home = env::var("HOME").unwrap_or_else(|_| "".to_string()); - let env_cpath = env::var("CPATH").unwrap_or_else(|_| "".to_string()); + let env_path = env::var("PATH").unwrap_or_default(); + let env_home = env::var("HOME").unwrap_or_default(); + let env_cpath = env::var("CPATH").unwrap_or_default(); - let builtins_host_tempfile = roc_bitcode::host_tempfile(&target) + let builtins_host_tempfile = roc_bitcode::host_tempfile(target) .as_ref() .expect("failed to write host builtins object to tempfile");