From 9126c9297ce11a62e6d90b1b34d4bd244b15a6de Mon Sep 17 00:00:00 2001 From: EmperorBale Date: Mon, 25 Oct 2021 11:13:41 -0700 Subject: [PATCH] avm2: Derive PartialEq and Eq for enums --- core/src/avm2/bytearray.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/avm2/bytearray.rs b/core/src/avm2/bytearray.rs index 8f43963ec..3111dd627 100644 --- a/core/src/avm2/bytearray.rs +++ b/core/src/avm2/bytearray.rs @@ -9,7 +9,7 @@ use std::io::prelude::*; use std::io::{self, Read, SeekFrom}; use std::str::FromStr; -#[derive(Clone, Collect, Debug, Copy)] +#[derive(Clone, Collect, Debug, Copy, PartialEq, Eq)] #[collect(no_drop)] pub enum Endian { Big, @@ -47,7 +47,7 @@ impl FromStr for CompressionAlgorithm { } } -#[derive(Clone, Collect, Debug, Copy)] +#[derive(Clone, Collect, Debug, Copy, PartialEq, Eq)] #[collect(no_drop)] pub enum ObjectEncoding { Amf0,