aboutsummaryrefslogtreecommitdiff
path: root/src/armv8
diff options
context:
space:
mode:
authornovafacing <rowanbhart@gmail.com>2024-06-24 13:00:04 -0700
committeriximeow <me@iximeow.net>2024-06-25 14:09:39 -0700
commit739317f268b4ed1a8f3e06af6c6fdf977219d4f9 (patch)
treef5a0f76b7d18063a6d395af516e9b07aafb2bb02 /src/armv8
parent997c73be34576fa7cb8c67be5b363498dd82b45d (diff)
Bump yaxpeax-arch and bitvec, allow use of deprecated yaxpeax-arch traits, fix bitvec syntax changes
Diffstat (limited to 'src/armv8')
-rw-r--r--src/armv8/a64.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/armv8/a64.rs b/src/armv8/a64.rs
index 87ded05..f60b87a 100644
--- a/src/armv8/a64.rs
+++ b/src/armv8/a64.rs
@@ -7,7 +7,9 @@
use core::fmt::{self, Display, Formatter};
-use yaxpeax_arch::{Arch, AddressDiff, Decoder, LengthedInstruction, Reader, ReadError, ShowContextual, YaxColors};
+use yaxpeax_arch::{Arch, AddressDiff, Decoder, LengthedInstruction, Reader, ReadError};
+#[allow(deprecated)]
+use yaxpeax_arch::{ShowContextual, YaxColors};
#[allow(non_snake_case)]
mod docs {
@@ -225,6 +227,7 @@ impl yaxpeax_arch::Instruction for Instruction {
/// displaying an instruction the same way its `Display` impl would.
pub struct NoContext;
+#[allow(deprecated)]
impl <T: fmt::Write, Y: YaxColors> ShowContextual<u64, NoContext, T, Y> for Instruction {
fn contextualize(&self, _colors: &Y, _address: u64, _context: Option<&NoContext>, out: &mut T) -> fmt::Result {
write!(out, "{}", self)