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

Commit c78ced2

Browse files
committed
Strip down supported versions to "at least 1.30"
1 parent d299f44 commit c78ced2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

build.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
extern crate version_check;
22

3-
use version_check::{is_min_date, is_min_version, is_nightly};
3+
use version_check::is_min_version;
44

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_nightly().unwrap_or(false)
9-
&& is_min_date("2018-09-02")
10-
.unwrap_or((false, "".to_string())).0)
11-
|| is_min_version("1.30").unwrap_or((false, "".to_string())).0
8+
if is_min_version("1.30").map(|(is_high_enough, _actual_version)| is_high_enough).unwrap_or(false)
129
{
1310
println!("cargo:rustc-cfg=has_error_source");
1411
}

0 commit comments

Comments
 (0)