Skip to content

Fix: parse null as None on custom format_description! serde implementations - #817

Merged
jhpratt merged 2 commits into
time-rs:mainfrom
Syndelis:fix-format-description-deserialize-flatten-null
Oct 15, 2026
Merged

jhpratt merged 2 commits into
time-rs:mainfrom
Syndelis:fix-format-description-deserialize-flatten-null

Conversation

@Syndelis

@Syndelis Syndelis commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

This fixes the exact same issue as #473, but for custom formats defined via format_description!, while that PR only addressed the issue for well-known formats.

@jhpratt

jhpratt commented Oct 14, 2026

Copy link
Copy Markdown
Member

Looks like the recursion limit is being hit during testing. I'm looking into options that wouldn't involve any changes to this PR, so you don't need to do anything at this point in time.

@jhpratt jhpratt added the C-enhancement Category: an enhancement with existing code label Oct 14, 2026
@jhpratt
jhpratt force-pushed the fix-format-description-deserialize-flatten-null branch from 11360e6 to 1231fa6 Compare October 15, 2026 08:35
@codecov

codecov Bot commented Oct 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.8%. Comparing base (76d00b7) to head (1231fa6).

Additional details and impacted files
@@          Coverage Diff          @@
##            main    #817   +/-   ##
=====================================
  Coverage   87.8%   87.8%           
=====================================
  Files        106     106           
  Lines      14411   14411           
=====================================
  Hits       12647   12647           
  Misses      1764    1764           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jhpratt

jhpratt commented Oct 15, 2026

Copy link
Copy Markdown
Member

Rebased and made a minor formatting change (that rustfmt doesn't do). Thanks!

@jhpratt
jhpratt merged commit 09b844a into time-rs:main Oct 15, 2026
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-enhancement Category: an enhancement with existing code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants