From e23f89ce43d5b5311673726b737fda54f85b38fe Mon Sep 17 00:00:00 2001 From: Jeffrey Czyz Date: Mon, 16 Sep 2024 14:42:06 -0500 Subject: [PATCH] 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. --- lightning/src/offers/merkle.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/lightning/src/offers/merkle.rs b/lightning/src/offers/merkle.rs index 15d6aabab..6cbad6279 100644 --- a/lightning/src/offers/merkle.rs +++ b/lightning/src/offers/merkle.rs @@ -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], -- 2.39.5