-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjusted MIN_MILLISECONDS and MIN_*_FULL
- Adjusted MIN_MILLISECONDS, MIN_NANOSECONDS_FULL, and MIN_MICROSECONDS_FULL due to changes in Chrono 0.4.32 that were not previously noticed, which restrict the minimum value of milliseconds by 1, by changing the limit from i64::MIN to -i64::MAX. This was carried out under chronotope/chrono#1334. Notably, Chrono 0.4.32 does still allow creation of a Duration with a milliseconds value of i64::MIN, which is why this change was not noticed sooner. This will be corrected when Chrono 0.4.34 is released, with chronotope/chrono#1385. In the meantime, the correction of constant values here means that we are now compatible with both versions and also do not suffer from the current Chrono bug.
- Loading branch information
1 parent
985aeed
commit 0754e27
Showing
2 changed files
with
14 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters