chronotope / chrono

Date and time library for Rust
Other
3.3k stars 523 forks source link

Convert `checked_(add|sub)_signed` to return `Result` #1514

Closed pitdicker closed 6 months ago

pitdicker commented 6 months ago

Convert NaiveDate::{checked_add_signed, checked_sub_signed} and NaiveDateTime::{checked_add_signed, checked_sub_signed, checked_add_offset, checked_sub_offset}.

codecov[bot] commented 6 months ago

Codecov Report

Attention: Patch coverage is 99.31034% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 94.01%. Comparing base (3265c28) to head (7b89ed7).

Files Patch % Lines
src/offset/mod.rs 66.66% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## 0.5.x #1514 +/- ## ========================================== - Coverage 94.01% 94.01% -0.01% ========================================== Files 37 37 Lines 16839 16814 -25 ========================================== - Hits 15832 15807 -25 Misses 1007 1007 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.