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/long_mode/mod.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/long_mode') diff --git a/src/long_mode/mod.rs b/src/long_mode/mod.rs index be7cedd..e967f4b 100644 --- a/src/long_mode/mod.rs +++ b/src/long_mode/mod.rs @@ -2732,6 +2732,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