Skip to content

Commit

Permalink
Remove unused hash & eq implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
bkirwi committed Jan 27, 2022
1 parent 40cd0c1 commit bf7865a
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions encrusted-heart/src/instruction.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use arrayvec::ArrayVec;
use num_enum::TryFromPrimitive;
use std::fmt;
use std::hash;

#[allow(non_camel_case_types)]
#[repr(u16)]
Expand Down Expand Up @@ -410,24 +409,6 @@ impl Instruction {
}
}

impl hash::Hash for Instruction {
fn hash<H>(&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!(
Expand Down

0 comments on commit bf7865a

Please # to comment.