From 82bac0e0e2ceebf15b3a70ab0908ffa9df2d0276 Mon Sep 17 00:00:00 2001 From: iximeow Date: Wed, 21 Jul 2021 00:16:57 -0700 Subject: fix incorrect changelog entry, DecodeError impl for yaxpeax_arch+std --- src/lib.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index 7d6a1ce..1fcd9d0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1386,6 +1386,16 @@ 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) + } +} + #[derive(Default)] pub struct InstDecoder {} -- cgit v1.1