From 0eed3ca0c9413071a15bd5171a3522a413aae383 Mon Sep 17 00:00:00 2001 From: iximeow Date: Fri, 7 May 2021 00:23:01 -0700 Subject: remove unneeded termion dep color information comes from yaxpeax-arch these days -- update yaxpeax-arch to 0.0.5 to swap its termion dep for crossterm while we're at it --- Cargo.toml | 5 ++--- src/display.rs | 6 +++--- src/lib.rs | 1 - 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index daf3a9f..89c8a4a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,15 +1,14 @@ [package] name = "yaxpeax-msp430" -version = "0.0.5" +version = "0.0.6" authors = [ "iximeow " ] license = "0BSD" repository = "http://git.iximeow.net/yaxpeax-msp430/" description = "msp430 decoders for the yaxpeax project" [dependencies] -yaxpeax-arch = { version = "0.0.4", default-features = false, features = [] } -"termion" = "1.4.0" +yaxpeax-arch = { version = "0.0.5", default-features = false, features = [] } "serde" = { version = "1.0", optional = true } "serde_derive" = { version = "1.0", optional = true } diff --git a/src/display.rs b/src/display.rs index d9b8f10..54147f7 100644 --- a/src/display.rs +++ b/src/display.rs @@ -25,7 +25,7 @@ impl fmt::Display for DecodeError { /// No per-operand when contextualizing an instruction. pub struct NoContext; -impl > ShowContextual<::Address, NoContext, Color, T, Y> for Instruction { +impl ShowContextual<::Address, NoContext, T, Y> for Instruction { fn contextualize(&self, _colors: &Y, _address: ::Address, _context: Option<&NoContext>, out: &mut T) -> std::fmt::Result { write!(out, "{}", self.opcode)?; match self.op_width { @@ -49,7 +49,7 @@ impl > ShowContextu } #[cfg(feature="std")] -impl > ShowContextual<::Address, [Option], Color, T, Y> for Instruction { +impl ShowContextual<::Address, [Option], T, Y> for Instruction { fn contextualize(&self, _colors: &Y, _address: ::Address, _context: Option<&[Option]>, out: &mut T) -> std::fmt::Result { write!(out, "{}", self.opcode)?; match self.op_width { @@ -116,7 +116,7 @@ impl Display for Operand { } } -impl > Colorize for Operand { +impl Colorize for Operand { fn colorize(&self, _colors: &Y, out: &mut T) -> std::fmt::Result { fn signed_hex(num: i16) -> String { if num >= 0 { diff --git a/src/lib.rs b/src/lib.rs index 7977c88..8d3a257 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,7 +6,6 @@ extern crate serde; //use serde::{Serialize, Deserialize}; extern crate yaxpeax_arch; -extern crate termion; use yaxpeax_arch::{Arch, AddressDiff, Decoder, LengthedInstruction}; -- cgit v1.1