From bf7865a024bdc7054806b0874eaab4c8d013af05 Mon Sep 17 00:00:00 2001 From: Ben Kirwin Date: Thu, 27 Jan 2022 12:08:59 -0500 Subject: [PATCH] Remove unused hash & eq implementation --- encrusted-heart/src/instruction.rs | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/encrusted-heart/src/instruction.rs b/encrusted-heart/src/instruction.rs index e7140a1..8966fab 100644 --- a/encrusted-heart/src/instruction.rs +++ b/encrusted-heart/src/instruction.rs @@ -1,7 +1,6 @@ use arrayvec::ArrayVec; use num_enum::TryFromPrimitive; use std::fmt; -use std::hash; #[allow(non_camel_case_types)] #[repr(u16)] @@ -410,24 +409,6 @@ impl Instruction { } } -impl hash::Hash for Instruction { - fn hash(&self, state: &mut H) - where - H: hash::Hasher, - { - state.write_usize(self.addr); - state.finish(); - } -} - -impl PartialEq for Instruction { - fn eq(&self, other: &Instruction) -> bool { - self.addr == other.addr - } -} - -impl Eq for Instruction {} - impl fmt::Display for Instruction { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(