From c75153a5efffcd2ac5f37864182e5108ea5f70ce Mon Sep 17 00:00:00 2001 From: iximeow Date: Fri, 7 May 2021 00:28:58 -0700 Subject: bump yaxpeax-arch to 0.0.5 to drop the termion dep fix interface changes around YaxColors as well --- src/armv7.rs | 16 ++++++++-------- src/armv8/a64.rs | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/armv7.rs b/src/armv7.rs index bd4629e..b815218 100644 --- a/src/armv7.rs +++ b/src/armv7.rs @@ -22,7 +22,7 @@ impl Display for ConditionedOpcode { pub struct NoContext; -fn reg_name_colorize>(reg: Reg, colors: &Y) -> impl fmt::Display { +fn reg_name_colorize(reg: Reg, colors: &Y) -> impl fmt::Display { match reg.number() { 0 => colors.register("r0"), 1 => colors.register("r1"), @@ -45,7 +45,7 @@ fn reg_name_colorize>(reg: Reg, colors: &Y) -> } #[allow(non_snake_case)] -impl > ShowContextual for Instruction { +impl ShowContextual for Instruction { fn contextualize(&self, colors: &Y, _address: u32, _context: Option<&NoContext>, out: &mut T) -> fmt::Result { match self.opcode { Opcode::IT => { @@ -381,7 +381,7 @@ impl > ShowContextual> Colorize for ConditionedOpcode { +impl Colorize for ConditionedOpcode { fn colorize(&self, colors: &Y, out: &mut T) -> fmt::Result { match self.0 { Opcode::UDF | @@ -1464,7 +1464,7 @@ impl Display for Bank { } } -impl > Colorize for Operand { +impl Colorize for Operand { fn colorize(&self, colors: &Y, f: &mut T) -> fmt::Result { match self { Operand::RegList(list) => { @@ -1636,7 +1636,7 @@ impl Instruction { pub fn thumb(&self) -> bool { self.thumb } } -fn format_reg_list>(f: &mut T, mut list: u16, colors: &Y) -> Result<(), fmt::Error> { +fn format_reg_list(f: &mut T, mut list: u16, colors: &Y) -> Result<(), fmt::Error> { write!(f, "{{")?; let mut i = 0; let mut tail = false; @@ -1657,7 +1657,7 @@ fn format_reg_list>(f: &mut T, m } #[allow(non_snake_case)] -fn format_shift>(f: &mut T, shift: RegShift, colors: &Y) -> Result<(), fmt::Error> { +fn format_shift(f: &mut T, shift: RegShift, colors: &Y) -> Result<(), fmt::Error> { match shift.into_shift() { RegShiftStyle::RegImm(imm_shift) => { if imm_shift.imm() == 0 && imm_shift.stype() == ShiftStyle::LSL { @@ -1673,7 +1673,7 @@ fn format_shift>(f: &mut T, shif } #[allow(non_snake_case)] -fn format_reg_shift_mem>(f: &mut T, Rd: Reg, shift: RegShift, add: bool, pre: bool, wback: bool, colors: &Y) -> Result<(), fmt::Error> { +fn format_reg_shift_mem(f: &mut T, Rd: Reg, shift: RegShift, add: bool, pre: bool, wback: bool, colors: &Y) -> Result<(), fmt::Error> { let op = if add { "" } else { "-" }; match (pre, wback) { @@ -1698,7 +1698,7 @@ fn format_reg_shift_mem>(f: &mut } #[allow(non_snake_case)] -fn format_reg_imm_mem>(f: &mut T, Rn: Reg, imm: u16, add: bool, pre: bool, wback: bool, colors: &Y) -> Result<(), fmt::Error> { +fn format_reg_imm_mem(f: &mut T, Rn: Reg, imm: u16, add: bool, pre: bool, wback: bool, colors: &Y) -> Result<(), fmt::Error> { if imm != 0 { let op = if add { "" } else { "-" }; diff --git a/src/armv8/a64.rs b/src/armv8/a64.rs index 65d513a..11b6499 100644 --- a/src/armv8/a64.rs +++ b/src/armv8/a64.rs @@ -156,7 +156,7 @@ impl yaxpeax_arch::Instruction for Instruction { pub struct NoContext; -impl > ShowContextual for Instruction { +impl ShowContextual for Instruction { fn contextualize(&self, _colors: &Y, _address: u64, _context: Option<&NoContext>, out: &mut T) -> fmt::Result { write!(out, "{}", self) } -- cgit v1.1