diff --git a/source/durandal/image.rs b/source/durandal/image.rs index 01998f5..aa539ba 100644 --- a/source/durandal/image.rs +++ b/source/durandal/image.rs @@ -178,7 +178,7 @@ pub struct Color8(u8, u8, u8); /// An RGB16 image. #[cfg_attr(feature = "serde_obj", derive(serde::Serialize))] -#[derive(Debug)] +#[derive(Debug, Eq, PartialEq)] pub struct Image16 { w: usize, @@ -190,7 +190,7 @@ pub struct Image16 /// An RGB8 image. #[cfg_attr(feature = "serde_obj", derive(serde::Serialize))] -#[derive(Debug)] +#[derive(Debug, Eq, PartialEq)] pub struct Image8 { w: usize, diff --git a/source/durandal/sound.rs b/source/durandal/sound.rs index a417aa3..075aaab 100644 --- a/source/durandal/sound.rs +++ b/source/durandal/sound.rs @@ -83,7 +83,7 @@ impl Sound for Sound16 /// A 16-bit PCM stream. #[cfg_attr(feature = "serde_obj", derive(serde::Serialize))] -#[derive(Debug)] +#[derive(Debug, Eq, PartialEq)] pub struct Sound16 { rate: u16, diff --git a/source/marathon/snd.rs b/source/marathon/snd.rs index 967cbab..44426c6 100644 --- a/source/marathon/snd.rs +++ b/source/marathon/snd.rs @@ -124,7 +124,7 @@ pub fn read_sounds(b: &[u8]) -> ResultS> } /// A sound definition containing one, many or no sounds. -#[derive(Debug)] +#[derive(Debug, Eq, PartialEq)] pub struct SoundDef { /// The volume type for this sound. diff --git a/source/marathon/wad.rs b/source/marathon/wad.rs index c5b319a..31889fe 100644 --- a/source/marathon/wad.rs +++ b/source/marathon/wad.rs @@ -135,7 +135,7 @@ pub fn read_wad(b: &[u8]) -> ResultS /// Any kind of chunk in an `Entry`. #[cfg_attr(feature = "serde_obj", derive(serde::Serialize))] -#[derive(Debug)] +#[derive(Debug, Eq, PartialEq)] pub enum Chunk { /// A `PICT` chunk. @@ -187,7 +187,7 @@ pub enum Chunk /// An entry containing chunks and application-specific data. #[cfg_attr(feature = "serde_obj", derive(serde::Serialize))] -#[derive(Debug)] +#[derive(Debug, Eq, PartialEq)] pub struct Entry { /// All of the chunks in this `Entry`. @@ -199,7 +199,7 @@ pub struct Entry /// A Map file containing entries. #[cfg_attr(feature = "serde_obj", derive(serde::Serialize))] -#[derive(Debug)] +#[derive(Debug, Eq, PartialEq)] pub struct Wad { /// The original name of this file.