Skip to content

Commit

Permalink
Fix warning in nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
lnicola committed Feb 22, 2021
1 parent d25e770 commit a31b1a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ fn main() {
let detected_version = Version::parse(semver_substring).expect("Could not parse gdal version!");

if detected_version.major < 2 {
panic!(format!(
panic!(
"The GDAL crate requires a GDAL version >= 2.0.0. Found {}",
detected_version.to_string()
));
);
}

println!("cargo:rustc-cfg=gdal_{}", detected_version.major);
Expand Down

0 comments on commit a31b1a5

Please sign in to comment.