aboutsummaryrefslogtreecommitdiff
path: root/src/long_mode/mod.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2021-07-04 16:29:33 -0700
committeriximeow <me@iximeow.net>2021-07-04 16:29:33 -0700
commite6ee65efa4e98ff5c1541d4277b76edaf1d33e51 (patch)
tree48b3862c3127ece5faba4e14a4cf881b8f202ebd /src/long_mode/mod.rs
parent0a746eb214f219989e6a0f189a35e7bec1242fbe (diff)
update yaxpeax-arch to 0.2.0 and update DecodeError impls
Diffstat (limited to 'src/long_mode/mod.rs')
-rw-r--r--src/long_mode/mod.rs9
1 files changed, 9 insertions, 0 deletions
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 {
+ <Self as yaxpeax_arch::DecodeError>::description(self)
+ }
+}
+
#[allow(non_camel_case_types)]
#[derive(Debug, Copy, Clone, Eq, PartialEq)]
enum OperandSpec {