Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace "days" with "try_days" in usage of chrono's "TimeDelta" #732

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Witcher01
Copy link

Checklist:

  • cargo +nightly fmt --all
  • Modify CHANGELOG.md if applicable

CHANGELOG.md seems to be missing updates since 0.23.0 so it's not updated.

The "days" function on "chrono::Duration" is deprecated in favor of
"try_days". Replace it with "try_days" and add an assertion that 2 days
doesn't overflow chrono's "TimeDelta".

Signed-off-by: Thomas Böhler <[email protected]>
As per the description on new pull requests, everything is formatted
with "cargo +nightly fmt --all".

Signed-off-by: Thomas Böhler <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant