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

Convert with_month and with_day to return Result #1509

Merged
merged 5 commits into from
Mar 12, 2024

Conversation

pitdicker
Copy link
Collaborator

Convert NaiveDate::{with_month, with_month0, with_day, with_day0} and NaiveDateTime::{with_month, with_month0, with_day, with_day0}.
All make use of NaiveDate::with_mdf internally.

Based on #1466, I'll rebase once that is merged.

cc @Zomtir

Copy link

codecov bot commented Mar 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.02%. Comparing base (ceeb289) to head (4c3681d).

Additional details and impacted files
@@            Coverage Diff             @@
##            0.5.x    #1509      +/-   ##
==========================================
- Coverage   94.03%   94.02%   -0.02%     
==========================================
  Files          37       37              
  Lines       17005    16974      -31     
==========================================
- Hits        15991    15960      -31     
  Misses       1014     1014              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/naive/date/mod.rs Outdated Show resolved Hide resolved
@pitdicker
Copy link
Collaborator Author

Quick work! I'm still opening my PC 😆

@pitdicker pitdicker merged commit 45d22e8 into chronotope:0.5.x Mar 12, 2024
35 checks passed
@pitdicker pitdicker deleted the date_with branch March 12, 2024 11:32
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.

2 participants