summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2021-07-21 00:16:57 -0700
committeriximeow <me@iximeow.net>2021-07-21 00:16:57 -0700
commit82bac0e0e2ceebf15b3a70ab0908ffa9df2d0276 (patch)
treecd3e0d1cffd4e29960723461d09db0347d72ffe0 /src/lib.rs
parent210e8d9c682524018b240565465a60f65c288e5d (diff)
fix incorrect changelog entry, DecodeError impl for yaxpeax_arch+std0.2.1
Diffstat (limited to 'src/lib.rs')
-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 {}