diff --git a/core/tauri-build/src/lib.rs b/core/tauri-build/src/lib.rs index 8207e2bd653..e7684e0dbb5 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 e58d35c1469..76a1d23da37 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.") }) }