summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib.rs10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 36a892e..f199c92 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1266,7 +1266,7 @@ impl fmt::Display for Instruction {
Ok(())
}
}
-#[derive(Debug, PartialEq, Eq)]
+#[derive(Debug, Default, PartialEq, Eq)]
pub struct InstructionBundle {
bundle_tag: u8,
instructions: [Instruction; 3],
@@ -1357,14 +1357,6 @@ impl yaxpeax_arch::Instruction for InstructionBundle {
true
}
}
-impl Default for InstructionBundle {
- fn default() -> Self {
- InstructionBundle {
- bundle_tag: 0,
- instructions: Default::default(),
- }
- }
-}
impl fmt::Display for InstructionBundle {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let (stops, types) = if let Some((types, stops)) = BUNDLE_TAGS[self.bundle_tag as usize] {