From 48440a3fbd4e94294bf9045f974153d92b7e876e Mon Sep 17 00:00:00 2001 From: zhangxu Date: Sat, 12 Oct 2024 11:51:03 +0800 Subject: [PATCH] fix: wrong type of build flag parameter --- build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.rs b/build.rs index 1f2cf15..8ab23d7 100644 --- a/build.rs +++ b/build.rs @@ -21,7 +21,7 @@ fn main() { // `cc` doesn't try to pick up on this automatically, but `clang` needs it to // generate a "correct" Objective-C symbol table which better matches XCode. // See https://github.com/h4llow3En/mac-notification-sys/issues/45. - .flag(format!("-mmacos-version-min={}", min_version)) + .flag(&format!("-mmacos-version-min={}", min_version)) .compile("notify"); println!("cargo:rerun-if-env-changed={}", DEPLOYMENT_TARGET_VAR);