From b4259c5b68d6df452dead48f42d602e7d8de0dc3 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 3 May 2020 13:59:12 -0700 Subject: bump to version 0.0.4, bumping yaxpeax-arch to 0.0.4 --- src/armv7.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/armv7.rs') diff --git a/src/armv7.rs b/src/armv7.rs index 3fe4df6..3029cc3 100644 --- a/src/armv7.rs +++ b/src/armv7.rs @@ -7,7 +7,7 @@ use std::fmt::{self, Display, Formatter}; -use yaxpeax_arch::{Arch, Colorize, Decoder, LengthedInstruction, NoColors, ShowContextual, YaxColors}; +use yaxpeax_arch::{Arch, AddressDiff, Colorize, Decoder, LengthedInstruction, NoColors, ShowContextual, YaxColors}; pub struct ConditionedOpcode(pub Opcode, pub bool, pub ConditionCode); @@ -1254,12 +1254,12 @@ impl Display for Instruction { } impl LengthedInstruction for Instruction { - type Unit = ::Address; + type Unit = AddressDiff<::Address>; fn min_size() -> Self::Unit { - 4 + AddressDiff::from_const(4) } fn len(&self) -> Self::Unit { - 4 + AddressDiff::from_const(4) } } -- cgit v1.1