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

ExactlyOneError: prettier Debug implementation #861

Merged

Conversation

Philippe-Cholet
Copy link
Member

It could be derived. It was, and it apparently was decided not to in #484, probably to not leak implementation details that could confuse the user. However, it would not render well for pretty formats such as "{:#?}". I think we should call methods on f instead of using write!. Then it can be both pretty and helpful to the user.

It could be derived. It apparently was decided not to in rust-itertools#484, probably to not leak implementation details that could confuse the user.
However, it would not render well for pretty formats such as `"{:#?}"`. I think we should call methods on `f` instead of using `write!`.
Copy link

codecov bot commented Jan 23, 2024

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (62d2b65) 93.43% compared to head (b31596f) 93.48%.

Files Patch % Lines
src/exactly_one_err.rs 0.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #861      +/-   ##
==========================================
+ Coverage   93.43%   93.48%   +0.05%     
==========================================
  Files          48       48              
  Lines        6778     6774       -4     
==========================================
  Hits         6333     6333              
+ Misses        445      441       -4     

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

@jswrenn jswrenn added this pull request to the merge queue Jan 24, 2024
@jswrenn jswrenn added this to the next milestone Jan 24, 2024
Merged via the queue into rust-itertools:master with commit b785403 Jan 24, 2024
12 of 13 checks passed
@Philippe-Cholet Philippe-Cholet deleted the prettier-debug-exactlyoneerror branch January 24, 2024 08:23
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.

None yet

2 participants