From 6d49c02eb3c1fbf61629b79f87ca7abf0700ccce Mon Sep 17 00:00:00 2001 From: EliseZeroTwo Date: Sat, 22 Jan 2022 13:51:12 +0100 Subject: chore: rust: add common useful derive macros to enums that are missing it --- rust/src/architecture.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rust/src/architecture.rs') diff --git a/rust/src/architecture.rs b/rust/src/architecture.rs index 0d1bd501..6df8b19c 100644 --- a/rust/src/architecture.rs +++ b/rust/src/architecture.rs @@ -36,6 +36,7 @@ use crate::llil::{FlagWriteOp, LiftedExpr, Lifter}; use crate::rc::*; use crate::string::*; +#[derive(Copy, Clone, PartialEq, Eq, Hash, Debug)] pub enum BranchInfo { Unconditional(u64), False(u64), @@ -160,6 +161,7 @@ impl InstructionInfo { } } +#[derive(Copy, Clone, PartialEq, Eq, Hash, Debug)] pub enum InstructionTextTokenContents { Text, Instruction, -- cgit v1.3.1