From 15d471e520d472f79a645509c774219cb84330ea Mon Sep 17 00:00:00 2001 From: IwantHappiness <132616344+IwantHappiness@users.noreply.github.com> Date: Wed, 3 Sep 2025 17:17:11 +0300 Subject: [PATCH] Remove needless macros format! (#11456) --- build.rs | 7 ++----- libs/scrap/build.rs | 32 ++++++++++---------------------- 2 files changed, 12 insertions(+), 27 deletions(-) diff --git a/build.rs b/build.rs index 3d19ee037..672f972d9 100644 --- a/build.rs +++ b/build.rs @@ -68,11 +68,8 @@ fn install_android_deps() { } path.push(target); println!( - "{}", - format!( - "cargo:rustc-link-search={}", - path.join("lib").to_str().unwrap() - ) + "cargo:rustc-link-search={}", + path.join("lib").to_str().unwrap() ); println!("cargo:rustc-link-lib=ndk_compat"); println!("cargo:rustc-link-lib=oboe"); diff --git a/libs/scrap/build.rs b/libs/scrap/build.rs index 807fdc74d..5332b568f 100644 --- a/libs/scrap/build.rs +++ b/libs/scrap/build.rs @@ -62,21 +62,15 @@ fn link_vcpkg(mut path: PathBuf, name: &str) -> PathBuf { } path.push(target); println!( - "{}", - format!( - "cargo:rustc-link-lib=static={}", - name.trim_start_matches("lib") - ) + "cargo:rustc-link-lib=static={}", + name.trim_start_matches("lib") ); println!( - "{}", - format!( - "cargo:rustc-link-search={}", - path.join("lib").to_str().unwrap() - ) + "cargo:rustc-link-search={}", + path.join("lib").to_str().unwrap() ); let include = path.join("include"); - println!("{}", format!("cargo:include={}", include.to_str().unwrap())); + println!("cargo:include={}", include.to_str().unwrap()); include } @@ -111,23 +105,17 @@ fn link_homebrew_m1(name: &str) -> PathBuf { path.push(directories.pop().unwrap()); // Link the library. println!( - "{}", - format!( - "cargo:rustc-link-lib=static={}", - name.trim_start_matches("lib") - ) + "cargo:rustc-link-lib=static={}", + name.trim_start_matches("lib") ); // Add the library path. println!( - "{}", - format!( - "cargo:rustc-link-search={}", - path.join("lib").to_str().unwrap() - ) + "cargo:rustc-link-search={}", + path.join("lib").to_str().unwrap() ); // Add the include path. let include = path.join("include"); - println!("{}", format!("cargo:include={}", include.to_str().unwrap())); + println!("cargo:include={}", include.to_str().unwrap()); include }