From c8b2e95a59e830b68ddaee671f56127690918198 Mon Sep 17 00:00:00 2001 From: iximeow Date: Mon, 22 Mar 2021 23:15:26 -0700 Subject: and clean up some warnings --- src/protected_mode/display.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/protected_mode/display.rs') diff --git a/src/protected_mode/display.rs b/src/protected_mode/display.rs index 1fd9ad3..ffb1acc 100644 --- a/src/protected_mode/display.rs +++ b/src/protected_mode/display.rs @@ -5,7 +5,7 @@ use core::fmt; use yaxpeax_arch::{Colorize, ShowContextual, NoColors, YaxColors}; use yaxpeax_arch::display::*; -use crate::protected_mode::{RegSpec, Opcode, Operand, InstDecoder, Instruction, Segment, PrefixVex, OperandSpec, DecodeError}; +use crate::protected_mode::{RegSpec, Opcode, Operand, InstDecoder, Instruction, Segment, PrefixVex, OperandSpec}; impl fmt::Display for InstDecoder { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { @@ -2557,7 +2557,7 @@ fn contextualize_intel>( Ok(()) } -fn contextualize_c>(instr: &Instruction, colors: &Y, _address: u32, _context: Option<&NoContext>, out: &mut T) -> fmt::Result { +fn contextualize_c>(instr: &Instruction, _colors: &Y, _address: u32, _context: Option<&NoContext>, out: &mut T) -> fmt::Result { let mut brace_count = 0; if instr.prefixes.lock() { -- cgit v1.1