-
Notifications
You must be signed in to change notification settings - Fork 376
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
Standardize trait derives in network message and graph objects #803
Standardize trait derives in network message and graph objects #803
Conversation
ACK a05b51a. It may also be worth adding |
d1627c3
to
1171a0b
Compare
Codecov Report
@@ Coverage Diff @@
## main #803 +/- ##
==========================================
+ Coverage 90.80% 90.84% +0.04%
==========================================
Files 45 45
Lines 24547 24547
==========================================
+ Hits 22289 22300 +11
+ Misses 2258 2247 -11
Continue to review full report at Codecov.
|
In general, trivial structs that have no inner logic can/should all derive, at least, `Clone, Debug, PartialEq`.
In general, trivial structs that have no inner logic can/should all derive, at least, `Clone, Debug, PartialEq`.
1171a0b
to
c229735
Compare
Rebased and updated the auto-generated bindings with new clones. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
#[cfg(not(feature = "fuzztarget"))] | ||
pub(crate) features: InitFeatures, | ||
#[cfg(feature = "fuzztarget")] | ||
/// The relevant features which the sender supports | ||
pub features: InitFeatures, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I take it this was necessary for the bindings?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm honestly not sure why it was here, I think it's just left over from when we had all the message guts hidden instead of exposed. Features is a well-exposed type now, though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review ACK c229735
In general, trivial structs that have no inner logic can/should
all derive, at least,
Clone, Debug, PartialEq
.