From f9997b4acafada6d19090f319a176f4a9d022f83 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 3 May 2020 14:01:32 -0700 Subject: version bump, bumping yaxpeax-arch to 0.0.4 --- src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index e83a8b0..074d660 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,7 +7,7 @@ use std::mem; use num_enum::IntoPrimitive; -use yaxpeax_arch::{Arch, Decoder, LengthedInstruction}; +use yaxpeax_arch::{Arch, AddressDiff, Decoder, LengthedInstruction}; mod display; @@ -88,13 +88,13 @@ impl yaxpeax_arch::Instruction for Instruction { } impl LengthedInstruction for Instruction { - type Unit = u32; + type Unit = AddressDiff; fn min_size() -> Self::Unit { - 4 + AddressDiff::from_const(4) } fn len(&self) -> Self::Unit { - 4 + AddressDiff::from_const(4) } } -- cgit v1.1