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
This commit is contained in:
5
build.rs
5
build.rs
@ -272,10 +272,7 @@ fn run_pkg_config() -> pkg_config::Library {
|
|||||||
.unwrap()
|
.unwrap()
|
||||||
.success()
|
.success()
|
||||||
{
|
{
|
||||||
panic!(format!(
|
panic!("MagickWand version must be less than 7.1");
|
||||||
"MagickWand version must be no higher than {}",
|
|
||||||
MAX_VERSION
|
|
||||||
));
|
|
||||||
}
|
}
|
||||||
// We have to split the version check and the cflags/libs check because
|
// 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).
|
// you can't do both at the same time on RHEL (apparently).
|
||||||
|
|||||||
Reference in New Issue
Block a user