Skip to content

Commit

Permalink
Work around issue on toolchain with commit-date different than rustup…
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jul 10, 2024
1 parent 9963839 commit f8ea85e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ impl Version {

pub(crate) fn probe(&self, minor: u32, year: u16, month: u8, day: u8) -> bool {
if self.nightly {
self.minor > minor || self.commit_date >= Date::new(year, month, day)
self.minor > minor
|| self.minor == minor && self.commit_date >= Date::new(year, month, day)
} else {
self.minor >= minor
}
Expand Down

0 comments on commit f8ea85e

Please sign in to comment.