Skip to content

Commit

Permalink
Fix >= version check
Browse files Browse the repository at this point in the history
  • Loading branch information
Meziu committed Jul 12, 2023
1 parent f5bee9a commit 4560716
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ pub fn check_rust_version() {
}

let old_version = MINIMUM_RUSTC_VERSION
> Version {
>= Version {
// Remove `-nightly` pre-release tag for comparison.
pre: semver::Prerelease::EMPTY,
..rustc_version.semver.clone()
Expand All @@ -146,7 +146,7 @@ pub fn check_rust_version() {
None => false,
Some(date) => {
MINIMUM_COMMIT_DATE
> CommitDate::parse(&date).expect("could not parse `rustc --version` commit date")
>= CommitDate::parse(&date).expect("could not parse `rustc --version` commit date")
}
};

Expand Down

0 comments on commit 4560716

Please sign in to comment.