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

Fix sub-second negative Duration serialization. #692

Closed
wants to merge 0 commits into from

Conversation

vriesk
Copy link
Contributor

@vriesk vriesk commented Jul 7, 2024

This addresses the problem that the Duration's sign will "disappear" both during serialization and deserialization of sub-second Durations.

Copy link

codecov bot commented Jul 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.7%. Comparing base (4a74924) to head (fa1e57a).
Report is 46 commits behind head on main.

Current head fa1e57a differs from pull request most recent head 9a7603f

Please upload reports for the commit 9a7603f to get more accurate results.

Additional details and impacted files
@@           Coverage Diff           @@
##            main    #692     +/-   ##
=======================================
- Coverage   97.8%   97.7%   -0.1%     
=======================================
  Files         81      83      +2     
  Lines       9378    8984    -394     
=======================================
- Hits        9169    8777    -392     
+ Misses       209     207      -2     

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

time/src/serde/visitor.rs Outdated Show resolved Hide resolved
time/src/duration.rs Outdated Show resolved Hide resolved
time/src/macros.rs Outdated Show resolved Hide resolved
time/src/serde/mod.rs Outdated Show resolved Hide resolved
time/src/serde/mod.rs Outdated Show resolved Hide resolved
time/src/serde/visitor.rs Outdated Show resolved Hide resolved
Copy link
Contributor Author

@vriesk vriesk left a comment

Choose a reason for hiding this comment

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

PTAL

time/src/duration.rs Outdated Show resolved Hide resolved
time/src/serde/mod.rs Outdated Show resolved Hide resolved
time/src/macros.rs Outdated Show resolved Hide resolved
time/src/serde/mod.rs Outdated Show resolved Hide resolved
@vriesk vriesk requested a review from jhpratt August 28, 2024 13:53
@vriesk
Copy link
Contributor Author

vriesk commented Sep 19, 2024

PTAL? :)

@jhpratt
Copy link
Member

jhpratt commented Sep 21, 2024

This is still waiting on resolution to the changed comment.

@vriesk
Copy link
Contributor Author

vriesk commented Sep 22, 2024 via email

@jhpratt
Copy link
Member

jhpratt commented Sep 23, 2024

That is what I had initially requested, yes.

@vriesk
Copy link
Contributor Author

vriesk commented Oct 2, 2024

That is what I had initially requested, yes.

Done, PTAL.

@jhpratt
Copy link
Member

jhpratt commented Oct 8, 2024

Sorry, I did not mean to close this! It happened automatically (somehow) when force-pushing a rebase.

Due to a quirk of GitHub, any PR that is force-pushed after being closed cannot be re-opened. As such I'll be merging it manually, so as to avoid making you open a new PR. You're still credited as the author 🙂

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