From 4560716fcca373a8fde8371e955c406751de8f3d Mon Sep 17 00:00:00 2001 From: Andrea Ciliberti Date: Wed, 12 Jul 2023 16:44:44 +0200 Subject: [PATCH] Fix >= version check --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 0af6431..fb94e07 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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() @@ -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") } };