avm2: Derive PartialEq and Eq for enums

This commit is contained in:
EmperorBale 2021-10-25 11:13:41 -07:00 committed by Mike Welsh
parent 69f2002d2a
commit 9126c9297c
1 changed files with 2 additions and 2 deletions

View File

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