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
… toolchain

Fixes #11

See #11 (comment) for more.
  • Loading branch information
taiki-e committed Jul 9, 2024
1 parent 5a29823 commit 334d9cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ mod 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 334d9cc

Please sign in to comment.