aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2019-07-20 10:55:43 -0700
committeriximeow <me@iximeow.net>2020-01-12 16:10:13 -0800
commit7b233f8382aa36e1f8c45d5d0827ccbc028a6357 (patch)
tree23a3f758fe81a371d09dae594d6b35c32347a12b /src
parent396473ebd282826459e5e589a2feae9100a4ae3d (diff)
remove unused operand variant
Diffstat (limited to 'src')
-rw-r--r--src/display.rs2
-rw-r--r--src/lib.rs4
2 files changed, 3 insertions, 3 deletions
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 <T: std::fmt::Write> Colorize<T> 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<Operand>),
+ // Many(Vec<Operand>),
Nothing
}
@@ -203,7 +203,7 @@ impl Operand {
Operand::ImmediateU64(_) |
Operand::ImmediateI64(_) |
Operand::Register(_) |
- Operand::Many(_) |
+ //Operand::Many(_) |
Operand::Nothing => {
false
}