-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Although monotonic and therefore safe from certain failure modes that SystemTime arithmetic can encounter, Instant's implementation is not consistent and can panic in certain implementations (rust-lang/rust#100141). Despite the risk of errors I've also (mostly) convinced myself that SystemTime is the more-correct type to use for this purpose, and my attempts to avoid it by converting them to Instants are mostly unhelpful (e.g. if the system time has changed the Instant representations would be wrong too). This PR includes a breaking API change to the `CacheStatus` enum, but should not affect CLI users.
- Loading branch information
Showing
2 changed files
with
15 additions
and
15 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