Skip to content

Commit e23f89c

Browse files
committed
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.
1 parent a773001 commit e23f89c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lightning/src/offers/merkle.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,6 @@ impl<'a> TlvStream<'a> {
249249
}
250250

251251
/// A slice into a [`TlvStream`] for a record.
252-
#[derive(Eq, PartialEq)]
253252
pub(super) struct TlvRecord<'a> {
254253
pub(super) r#type: u64,
255254
type_bytes: &'a [u8],

0 commit comments

Comments
 (0)