Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Implement Encode & Decode for Wrapping<T> types#686

Merged
VictorKoenders merged 2 commits intobincode-org:trunkfrom
mzachar:trunk
Dec 15, 2023
Merged

Implement Encode & Decode for Wrapping<T> types#686
VictorKoenders merged 2 commits intobincode-org:trunkfrom
mzachar:trunk

Conversation

@mzachar
Copy link
Contributor

@mzachar mzachar commented Dec 14, 2023

Structures can clearly indicate that the value may overflow and it is intended behaviour

@VictorKoenders
Copy link
Contributor

VictorKoenders commented Dec 14, 2023

I double checked serde's implementation (which matches your implementation, so you're good) and I noticed they also implement std::cmp::Reverse<T>. This is also a simple wrapper around T. Would you mind adding that as well?

@codecov
Copy link

codecov bot commented Dec 14, 2023

Codecov Report

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

Comparison is base (3a638a7) 57.24% compared to head (8792100) 57.39%.

❗ Current head 8792100 differs from pull request most recent head 3847e54. Consider uploading reports for the commit 3847e54 to get more accurate results

Files Patch % Lines
src/de/impls.rs 50.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            trunk     #686      +/-   ##
==========================================
+ Coverage   57.24%   57.39%   +0.15%     
==========================================
  Files          51       51              
  Lines        4350     4366      +16     
==========================================
+ Hits         2490     2506      +16     
  Misses       1860     1860              

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

@mzachar
Copy link
Contributor Author

mzachar commented Dec 14, 2023

I don't mind at all :)

@VictorKoenders VictorKoenders enabled auto-merge (squash) December 15, 2023 06:44
@VictorKoenders VictorKoenders merged commit 092628b into bincode-org:trunk Dec 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants