aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2024-06-19 14:28:49 -0700
committeriximeow <me@iximeow.net>2024-06-19 14:28:49 -0700
commit8221d7cdbdd59afb200f5b86735d8696dbeb8fc8 (patch)
tree6386ed48bd6b3e28c1f326dbc3fa5206cd576c1c
parent4a01c5c4786a428e46f509731f37d963ba43d7b0 (diff)
more warning cleanup
-rw-r--r--src/long_mode/display.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/long_mode/display.rs b/src/long_mode/display.rs
index 535fc75..da138bb 100644
--- a/src/long_mode/display.rs
+++ b/src/long_mode/display.rs
@@ -885,8 +885,8 @@ impl DisplaySink for alloc::string::String {
Ok(())
}
- fn span_enter(&mut self, ty: TokenType) {}
- fn span_end(&mut self, ty: TokenType) {}
+ fn span_enter(&mut self, _ty: TokenType) {}
+ fn span_end(&mut self, _ty: TokenType) {}
}
impl DisplaySink for BigEnoughString {
@@ -1260,8 +1260,8 @@ impl DisplaySink for BigEnoughString {
Ok(())
}
- fn span_enter(&mut self, ty: TokenType) {}
- fn span_end(&mut self, ty: TokenType) {}
+ fn span_enter(&mut self, _ty: TokenType) {}
+ fn span_end(&mut self, _ty: TokenType) {}
}
impl BigEnoughString {
@@ -4709,7 +4709,7 @@ fn contextualize_intel<T: DisplaySink>(instr: &Instruction, out: &mut T) -> fmt:
}
if instr.operands[0 as usize].is_memory() {
- unsafe { out.write_lt_8(MEM_SIZE_STRINGS.get_kinda_unchecked(instr.mem_size as usize))? };
+ unsafe { out.write_lt_8(mem_size_label(instr.mem_size))? };
if let Some(prefix) = instr.segment_override_for_op(0) {
let name = prefix.name();
out.write_char(' ')?;
@@ -4735,7 +4735,7 @@ fn contextualize_intel<T: DisplaySink>(instr: &Instruction, out: &mut T) -> fmt:
}
if instr.operands[i as usize].is_memory() {
- unsafe { out.write_lt_8(MEM_SIZE_STRINGS.get_kinda_unchecked(instr.mem_size as usize))? };
+ unsafe { out.write_lt_8(mem_size_label(instr.mem_size))? };
if i >= 4 {
unsafe { core::hint::unreachable_unchecked(); }
}
@@ -5151,7 +5151,7 @@ fn contextualize_c<T: fmt::Write>(instr: &Instruction, _address: u64, _context:
}
impl <'instr, T: fmt::Write, Y: YaxColors> ShowContextual<u64, NoContext, T, Y> for InstructionDisplayer<'instr> {
- fn contextualize(&self, colors: &Y, address: u64, context: Option<&NoContext>, out: &mut T) -> fmt::Result {
+ fn contextualize(&self, _colors: &Y, address: u64, context: Option<&NoContext>, out: &mut T) -> fmt::Result {
let InstructionDisplayer {
instr,
style,