From 4a2bbbc6f84dcb76255ab6f3595a8d4a0ce96618 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Fri, 6 Oct 2023 01:10:41 -0400 Subject: [PATCH] Derive PartialEq for Argument, pub SimplifiedIns::basic_form --- disasm/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/disasm/src/lib.rs b/disasm/src/lib.rs index e46950d..1081fce 100644 --- a/disasm/src/lib.rs +++ b/disasm/src/lib.rs @@ -215,7 +215,7 @@ impl Display for Bit { // Unsigned opaque argument. field_arg!(OpaqueU, u32); -#[derive(Debug, Clone)] +#[derive(Debug, Clone, Eq, PartialEq)] pub enum Argument { GPR(GPR), FPR(FPR), @@ -443,7 +443,7 @@ impl Display for SimplifiedIns { } impl SimplifiedIns { - pub(crate) fn basic_form(ins: Ins) -> Self { + pub fn basic_form(ins: Ins) -> Self { Self { mnemonic: ins.op.mnemonic(), suffix: ins.suffix(),