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(prost-types): Format negative fractional duration #1110

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

caspermeijn
Copy link
Collaborator

Duration -0.123s was formatted as a positive number.

@caspermeijn
Copy link
Collaborator Author

@mumbleskates I took a shot at fuzzing duration. It is difficult to find another implementation to compare to. But I found this bug at least.

Duration `-0.123s` was formatted as a positive number.
@mumbleskates
Copy link
Contributor

oh nice! thank you.

yes, the standards for time intervals i know of are fearsomely complicated and I'd be hesitant to make anything much more complicated. maybe adding hours and minutes would be friendly but it's not really necessary

@caspermeijn caspermeijn added this pull request to the merge queue Jul 31, 2024
Merged via the queue into tokio-rs:master with commit d16bed8 Jul 31, 2024
16 checks passed
@caspermeijn caspermeijn deleted the fix_format_duration branch July 31, 2024 11:51
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