summaryrefslogtreecommitdiff
path: root/src/display.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2021-07-06 18:19:19 -0700
committeriximeow <me@iximeow.net>2021-07-06 18:21:16 -0700
commite98b04b473465a161aefd8d6cf7213f08b54758f (patch)
tree99e3c5ae7792e36229afeb20750e1b81b33d7210 /src/display.rs
parent0eed3ca0c9413071a15bd5171a3522a413aae383 (diff)
update yaxpeax-arch to 0.2.3, tag 0.1.00.1.0
Diffstat (limited to 'src/display.rs')
-rw-r--r--src/display.rs14
1 files changed, 2 insertions, 12 deletions
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;