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

0.5.x: Rename NaiveDate::*_opt methods #1436

Merged
merged 16 commits into from
Feb 16, 2024
Merged

Conversation

pitdicker
Copy link
Collaborator

This continues the renaming op all _opt methods after the removal of their deprecated panicking variants in #1394. Only the NaiveDate type was left out of that PR. Turns out for the best, as the find-and-replace touches ca. 1000 lines.

The first three commits are a cosmetic fix for some tests that I would like to backport to the main branch in a later PR (I'm collecting a couple).

The last two commits remove 4 lines that mentioned removed *_opt methods in comments that slipped through in #1394 and the last merge of main.

@pitdicker pitdicker changed the title Rename NaiveDate::*_opt methods 0.5.x: Rename NaiveDate::*_opt methods Feb 13, 2024
Copy link

codecov bot commented Feb 13, 2024

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (34b776e) 94.19% compared to head (f254968) 94.15%.

Files Patch % Lines
src/datetime/tests.rs 95.12% 2 Missing ⚠️
src/naive/datetime/mod.rs 98.79% 2 Missing ⚠️
src/naive/date/mod.rs 99.53% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            0.5.x    #1436      +/-   ##
==========================================
- Coverage   94.19%   94.15%   -0.05%     
==========================================
  Files          37       37              
  Lines       16821    16696     -125     
==========================================
- Hits        15845    15720     -125     
  Misses        976      976              

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

Copy link
Contributor

@Zomtir Zomtir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does what it describes. Only removes the _opt suffix and renames two macros.

@pitdicker pitdicker merged commit 69208e5 into chronotope:0.5.x Feb 16, 2024
35 checks passed
@pitdicker pitdicker deleted the rename_opt branch February 16, 2024 17:38
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.

3 participants