summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs10
1 files changed, 10 insertions, 0 deletions
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 {
+ <Self as yaxpeax_arch::DecodeError>::description(self)
+ }
+}
+
#[derive(Default)]
pub struct InstDecoder {}