From 20fd6a78830ec75918175b2375c21dd667b894ce Mon Sep 17 00:00:00 2001 From: Andreas Fuchs Date: Wed, 29 Dec 2021 22:49:01 +0100 Subject: [PATCH] Derive Eq for the two structs too --- src/metadata.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/metadata.rs b/src/metadata.rs index c846993..ddfe207 100644 --- a/src/metadata.rs +++ b/src/metadata.rs @@ -20,7 +20,7 @@ struct MetadataBlockHeader { } /// The streaminfo metadata block, with important information about the stream. -#[derive(Clone, Copy, Debug, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq, Eq)] pub struct StreamInfo { // TODO: "size" would better be called "duration" for clarity. /// The minimum block size (in inter-channel samples) used in the stream. @@ -54,7 +54,7 @@ pub struct StreamInfo { } /// A seek point in the seek table. -#[derive(Clone, Copy, PartialEq)] +#[derive(Clone, Copy, PartialEq, Eq)] pub struct SeekPoint { /// Sample number of the first sample in the target frame, or 264 - 1 for a placeholder. pub sample: u64,