From f783dd0aa2cc8580f79878cad4a22f0f7e8deff4 Mon Sep 17 00:00:00 2001 From: Serial <69764315+Serial-ATA@users.noreply.github.com> Date: Tue, 28 Nov 2023 13:32:19 -0500 Subject: [PATCH] EBML: Add missing derive Signed-off-by: Serial <69764315+Serial-ATA@users.noreply.github.com> --- src/ebml/element_reader.rs | 2 +- src/ebml/read/segment_info.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ebml/element_reader.rs b/src/ebml/element_reader.rs index adea7275..a4a717a3 100644 --- a/src/ebml/element_reader.rs +++ b/src/ebml/element_reader.rs @@ -24,7 +24,7 @@ impl ElementHeader { } } -#[derive(Copy, Clone)] +#[derive(Copy, Clone, Eq, PartialEq)] pub enum ElementDataType { SignedInt, UnsignedInt, diff --git a/src/ebml/read/segment_info.rs b/src/ebml/read/segment_info.rs index 00bc642b..67609e8d 100644 --- a/src/ebml/read/segment_info.rs +++ b/src/ebml/read/segment_info.rs @@ -51,7 +51,7 @@ where // We do not end up using information from all of the segment // elements, so we can just skip any useless ones. - log::debug!("Skipping EBML child element: {:?}", child); + log::debug!("Skipping EBML child element: {:?}", child.ident); element_reader.skip(size)?; continue; },