Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit d69c655

Browse files
authored
Merge pull request #260 from SergioBenitez/master
Update version_check to 0.9.
2 parents c50ee10 + f5417d2 commit d69c655

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ example_generated = []
2323
backtrace = { version = "0.3.3", optional = true }
2424

2525
[build-dependencies]
26-
version_check = "0.1.5"
26+
version_check = "0.9"

build.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ use version_check::is_min_version;
55
fn main() {
66
// Switch on for versions that have Error::source
77
// As introduced by https://github.com/rust-lang/rust/pull/53533
8-
if is_min_version("1.30").map(|(is_high_enough, _actual_version)| is_high_enough).unwrap_or(false)
9-
{
8+
if is_min_version("1.30").unwrap_or(false) {
109
println!("cargo:rustc-cfg=has_error_source");
1110
}
1211
}

0 commit comments

Comments
 (0)