From 77c5f430b748f978efcb5bdb1d6819fc0248e214 Mon Sep 17 00:00:00 2001 From: Hamir Mahal Date: Thu, 11 Jul 2024 11:19:45 -0700 Subject: [PATCH] fix: file formatting in `core/` --- core/tauri-build/src/lib.rs | 7 ++----- core/tauri/build.rs | 4 +--- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/core/tauri-build/src/lib.rs b/core/tauri-build/src/lib.rs index 8207e2bd6530..e7684e0dbb59 100644 --- a/core/tauri-build/src/lib.rs +++ b/core/tauri-build/src/lib.rs @@ -168,11 +168,8 @@ fn copy_framework_from(src_dir: &Path, framework: &str, dest_dir: &Path) -> Resu // Copies the macOS application bundle frameworks to the target folder fn copy_frameworks(dest_dir: &Path, frameworks: &[String]) -> Result<()> { - std::fs::create_dir_all(dest_dir).with_context(|| { - format!( - "Failed to create frameworks output directory at {dest_dir:?}" - ) - })?; + std::fs::create_dir_all(dest_dir) + .with_context(|| format!("Failed to create frameworks output directory at {dest_dir:?}"))?; for framework in frameworks.iter() { if framework.ends_with(".framework") { let src_path = PathBuf::from(framework); diff --git a/core/tauri/build.rs b/core/tauri/build.rs index e58d35c14699..76a1d23da37c 100644 --- a/core/tauri/build.rs +++ b/core/tauri/build.rs @@ -257,9 +257,7 @@ fn main() { if let Ok(kotlin_out_dir) = std::env::var("WRY_ANDROID_KOTLIN_FILES_OUT_DIR") { fn env_var(var: &str) -> String { std::env::var(var).unwrap_or_else(|_| { - panic!( - "`{var}` is not set, which is needed to generate the kotlin files for android." - ) + panic!("`{var}` is not set, which is needed to generate the kotlin files for android.") }) }