Closed Salanoid closed 2 months ago
Sadly there are no end-to-end tests in this project, so you'll have to rely on carefulness in order to preserve the current behaviour.
There are a few unit tests, and a couple CI jobs; these should be green.
Hi, I will reopen this pull request once I have finished the commits. Thank you so much for your feedback.
I made an intermediate commit; I still kept chrono so that the return types remains DateTime
The algorithm looks correct to me 👍 But the code fails to build (small error with the
Result
type). While you're at it, can you please also runcargo fmt
?
I did that too, but i think the error from cargo build was because of my mistakes in here:
time.rs line ~56 return type for now_plus_offset_plus_random_from_range
) -> Result<SystemTime> {
) -> anyhow::Result<SystemTime> {
Excellent work, thank you very much for this! :tada:
This commit replaces chrono::Duration with std::time::Duration. Fix for issue: #294