From: Jeffrey Czyz Date: Mon, 16 Sep 2024 19:42:06 +0000 (-0500) Subject: Remove unneeded Eq and PartialEq derives X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=e23f89ce43d5b5311673726b737fda54f85b38fe;p=rust-lightning 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. --- 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],