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:
Jeffrey Czyz 2024-09-16 14:42:06 -05:00
parent a77300129c
commit e23f89ce43
No known key found for this signature in database
GPG key ID: 912EF12EA67705F5

View file

@ -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],