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

Allow generics for SerializeDisplay and DeserializeFromStr derives #413

Merged
merged 2 commits into from
Feb 12, 2022

Conversation

jonasbb
Copy link
Owner

@jonasbb jonasbb commented Feb 9, 2022

The derives did not take into account that types can have generics. Ensure that lifetime and type generics are added to the generated impls. Add new tests to serde_with_test to prevent regressions.

@codecov
Copy link

codecov bot commented Feb 9, 2022

Codecov Report

Merging #413 (ddb06e1) into master (55dcf21) will decrease coverage by 0.48%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #413      +/-   ##
==========================================
- Coverage   70.85%   70.37%   -0.49%     
==========================================
  Files          51       51              
  Lines        3363     3386      +23     
==========================================
  Hits         2383     2383              
- Misses        980     1003      +23     
Impacted Files Coverage Δ
serde_with_macros/src/lib.rs 0.00% <0.00%> (ø)
serde_with_macros/src/utils.rs 0.00% <0.00%> (ø)
serde_with_test/tests/derive_display_fromstr.rs 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 55dcf21...ddb06e1. Read the comment docs.

The derives did not take into account that types can have generics.
Ensure that lifetime and type generics are added to the generated impls.
Add new tests to `serde_with_test` to prevent regressions.
@jonasbb
Copy link
Owner Author

jonasbb commented Feb 12, 2022

bors merge

@bors
Copy link
Contributor

bors bot commented Feb 12, 2022

Build succeeded:

@bors bors bot merged commit f9cbe93 into master Feb 12, 2022
@bors bors bot deleted the fix-derive-generics branch February 12, 2022 19:25
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

1 participant