diff options
author | iximeow <me@iximeow.net> | 2021-07-21 00:16:57 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2021-07-21 00:16:57 -0700 |
commit | 82bac0e0e2ceebf15b3a70ab0908ffa9df2d0276 (patch) | |
tree | cd3e0d1cffd4e29960723461d09db0347d72ffe0 /src | |
parent | 210e8d9c682524018b240565465a60f65c288e5d (diff) |
fix incorrect changelog entry, DecodeError impl for yaxpeax_arch+std0.2.1
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 {} |