-
Notifications
You must be signed in to change notification settings - Fork 385
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
derive(Hash)
for P2P messages
#2716
Conversation
ccbc640
to
0023cad
Compare
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #2716 +/- ##
==========================================
+ Coverage 88.82% 88.96% +0.13%
==========================================
Files 113 113
Lines 89201 91620 +2419
Branches 89201 91620 +2419
==========================================
+ Hits 79235 81509 +2274
- Misses 7727 7838 +111
- Partials 2239 2273 +34 ☔ View full report in Codecov by Sentry. |
Ugh, still fails with
|
@arik-so can you implement |
0023cad
to
19e8359
Compare
Rebased after the dep bump. |
19e8359
to
7be34cc
Compare
7be34cc
to
db00986
Compare
LGTM! CI is failing |
Implementation of standard traits on arrays longer than 32 elements was shipped in rustc 1.47, which is below our MSRV of 1.48 and we can use to remove some unnecessary manual implementation of `PartialEq` on `OnionPacket`.
In other languages (Java and C#, notably), overriding `Eq` without overriding `Hash` can lead to surprising or broken behavior. Even in Rust, its usually the case that you actually want both. Here we add missing `Hash` derivations for P2P messages, to at least address the first pile of warnings the C# compiler dumps.
db00986
to
26c00ad
Compare
Yea, sorry, just had to squash that fixup commit. |
In other languages (Java and C#, notably), overriding
Eq
without overridingHash
can lead to surprising or broken behavior. Even in Rust, its usually the case that you actually want both. Here we add missingHash
derivations for P2P messages, to at least address the first pile of warnings the C# compiler dumps.