summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 6315bdd..8891726 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],
@@ -1347,14 +1347,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] {