From 020efa4dfa853fca943f6c689d711373bd25337c Mon Sep 17 00:00:00 2001 From: Jonas Kruckenberg Date: Fri, 24 Mar 2023 13:03:15 +0100 Subject: [PATCH] fmt --- tooling/cli/src/interface/rust/desktop.rs | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/tooling/cli/src/interface/rust/desktop.rs b/tooling/cli/src/interface/rust/desktop.rs index f1921a54d..772eb752c 100644 --- a/tooling/cli/src/interface/rust/desktop.rs +++ b/tooling/cli/src/interface/rust/desktop.rs @@ -310,12 +310,20 @@ fn build_command( // set the rust --remap-path-prefix flags to strip absolute paths that could leak usernames or other PII from panic messages and debug symbols // see https://github.com/tauri-apps/tauri/issues/6538 for context - let mut rustflags = std::env::var("RUSTFLAGS") - .unwrap_or_default(); + let mut rustflags = std::env::var("RUSTFLAGS").unwrap_or_default(); - rustflags.push_str(&format!(" --remap-path-prefix={}=", std::env::current_dir().unwrap().display())); - rustflags.push_str(&format!(" --remap-path-prefix={}=cargo", env!("CARGO_HOME"))); - rustflags.push_str(&format!(" --remap-path-prefix={}=rustup", env!("RUSTUP_HOME"))); + rustflags.push_str(&format!( + " --remap-path-prefix={}=", + std::env::current_dir().unwrap().display() + )); + rustflags.push_str(&format!( + " --remap-path-prefix={}=cargo", + env!("CARGO_HOME") + )); + rustflags.push_str(&format!( + " --remap-path-prefix={}=rustup", + env!("RUSTUP_HOME") + )); build_cmd.envs([("RUSTFLAGS", rustflags)]);