mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-03-15 15:39:09 +01:00
Remove unneeded Eq and PartialEq derives
TlvRecord has a few fields, but comparing only the record_bytes is sufficient for equality since the other fields are initialized from it. Remove the Eq and PartialEq derives as they compare these other fields.
This commit is contained in:
parent
a77300129c
commit
e23f89ce43
1 changed files with 0 additions and 1 deletions
|
@ -249,7 +249,6 @@ impl<'a> TlvStream<'a> {
|
|||
}
|
||||
|
||||
/// A slice into a [`TlvStream`] for a record.
|
||||
#[derive(Eq, PartialEq)]
|
||||
pub(super) struct TlvRecord<'a> {
|
||||
pub(super) r#type: u64,
|
||||
type_bytes: &'a [u8],
|
||||
|
|
Loading…
Add table
Reference in a new issue