From f5417d2eb4f0f1398d61c9ecef948c37a073e563 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Thu, 23 May 2019 21:21:52 -0700 Subject: [PATCH] Update version_check to 0.9. --- build.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build.rs b/build.rs index 2150a3d..e306f08 100644 --- a/build.rs +++ b/build.rs @@ -5,8 +5,7 @@ use version_check::is_min_version; fn main() { // Switch on for versions that have Error::source // As introduced by https://github.com/rust-lang/rust/pull/53533 - if is_min_version("1.30").map(|(is_high_enough, _actual_version)| is_high_enough).unwrap_or(false) - { + if is_min_version("1.30").unwrap_or(false) { println!("cargo:rustc-cfg=has_error_source"); } } -- 2.24.0