chronotope / chrono

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

Use different method to ignore feature-dependent doctests #1534

Closed pitdicker closed 6 months ago

pitdicker commented 6 months ago

This will enable an almost clean run with cargo +nightly fmt -- --config format_code_in_doc_comments=true. It did not handle a combination of doc comments and #[cfg_attr(feature = ..., doc = "...")] well.

codecov[bot] commented 6 months ago

Codecov Report

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

Project coverage is 91.82%. Comparing base (18328a8) to head (206c410).

Files Patch % Lines
src/format/parsed.rs 75.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1534 +/- ## ========================================== + Coverage 91.81% 91.82% +0.01% ========================================== Files 40 40 Lines 18319 18345 +26 ========================================== + Hits 16820 16846 +26 Misses 1499 1499 ```

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