From 94228253227b06267eb8cef8f0e4b3bf5a46dd73 Mon Sep 17 00:00:00 2001 From: Nathan Fiedler Date: Sat, 27 Mar 2021 11:22:50 -0700 Subject: [PATCH] fix: in Rust 1.51 panic! takes only string literals Seems that Rust 2021 will require that panic! macro takes only a string literal, so format! and variables are out. cargo test passes --- build.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/build.rs b/build.rs index e4a7968..b9a12a1 100644 --- a/build.rs +++ b/build.rs @@ -272,10 +272,7 @@ fn run_pkg_config() -> pkg_config::Library { .unwrap() .success() { - panic!(format!( - "MagickWand version must be no higher than {}", - MAX_VERSION - )); + panic!("MagickWand version must be less than 7.1"); } // We have to split the version check and the cflags/libs check because // you can't do both at the same time on RHEL (apparently).