From e6ee65efa4e98ff5c1541d4277b76edaf1d33e51 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 4 Jul 2021 16:29:33 -0700 Subject: update yaxpeax-arch to 0.2.0 and update DecodeError impls --- src/real_mode/mod.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/real_mode') diff --git a/src/real_mode/mod.rs b/src/real_mode/mod.rs index e752ee0..6913fb4 100644 --- a/src/real_mode/mod.rs +++ b/src/real_mode/mod.rs @@ -2679,6 +2679,15 @@ impl yaxpeax_arch::DecodeError for DecodeError { } } +#[cfg(feature = "std")] +extern crate std; +#[cfg(feature = "std")] +impl std::error::Error for DecodeError { + fn description(&self) -> &str { + ::description(self) + } +} + #[allow(non_camel_case_types)] #[derive(Debug, Copy, Clone, Eq, PartialEq)] enum OperandSpec { -- cgit v1.1