From 7b233f8382aa36e1f8c45d5d0827ccbc028a6357 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sat, 20 Jul 2019 10:55:43 -0700 Subject: remove unused operand variant --- src/display.rs | 2 +- src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/display.rs b/src/display.rs index 9d4bc9f..a3cd643 100644 --- a/src/display.rs +++ b/src/display.rs @@ -175,7 +175,7 @@ impl Colorize for Operand { ) }, &Operand::Nothing => { Ok(()) }, - &Operand::Many(_) => { panic!("many not covered"); } + // &Operand::Many(_) => { panic!("many not covered"); } } } } diff --git a/src/lib.rs b/src/lib.rs index 97c679d..24f4299 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -175,7 +175,7 @@ pub enum Operand { RegScaleDisp(RegSpec, u8, i32), RegIndexBaseScale(RegSpec, RegSpec, u8), RegIndexBaseScaleDisp(RegSpec, RegSpec, u8, i32), - Many(Vec), + // Many(Vec), Nothing } @@ -203,7 +203,7 @@ impl Operand { Operand::ImmediateU64(_) | Operand::ImmediateI64(_) | Operand::Register(_) | - Operand::Many(_) | + //Operand::Many(_) | Operand::Nothing => { false } -- cgit v1.1