From e98b04b473465a161aefd8d6cf7213f08b54758f Mon Sep 17 00:00:00 2001 From: iximeow Date: Tue, 6 Jul 2021 18:19:19 -0700 Subject: update yaxpeax-arch to 0.2.3, tag 0.1.0 --- src/display.rs | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'src/display.rs') diff --git a/src/display.rs b/src/display.rs index 54147f7..12153b1 100644 --- a/src/display.rs +++ b/src/display.rs @@ -1,6 +1,6 @@ -use ::{MSP430, Operand, Opcode, Instruction, Width, DecodeError}; +use ::{MSP430, Operand, Opcode, Instruction, Width}; -use std::fmt::{self, Display, Formatter}; +use std::fmt::{Display, Formatter}; use std; use yaxpeax_arch::{Arch, Colorize, NoColors, ShowContextual, YaxColors}; @@ -12,16 +12,6 @@ impl Display for Instruction { } } -impl fmt::Display for DecodeError { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - match self { - DecodeError::ExhaustedInput => write!(f, "exhausted input"), - DecodeError::InvalidOpcode => write!(f, "invalid opcode"), - DecodeError::InvalidOperand => write!(f, "invalid operand"), - } - } -} - /// No per-operand when contextualizing an instruction. pub struct NoContext; -- cgit v1.1