clippy fixes

This commit is contained in:
Luke Street 2025-07-06 22:21:49 -06:00
parent 108aa7673a
commit 817ce36ee3
2 changed files with 3 additions and 3 deletions

View File

@ -64,7 +64,7 @@ pub fn parse_conditions<'a>(condition: &'a str, isa: &'a Isa) -> Result<Vec<Cond
} else if let Some((field, value)) = tok.split_once(" >= ") {
(field, value, ConditionOp::Gte)
} else {
log::error!("Invalid condition: {}", tok);
log::error!("Invalid condition: {tok}");
continue;
};
let mut field_mask = u32::MAX;

View File

@ -40,7 +40,7 @@ pub fn gen_disasm(isa: &Isa, max_args: usize) -> Result<TokenStream> {
} else if let Some(op) = (entry.count == 1).then(|| &sorted_ops[entry.start as usize]) {
log::info!("{:#X}: {}", i, op.name);
} else {
log::info!("{:#X}: <invalid>", i);
log::info!("{i:#X}: <invalid>");
}
entries.push(entry);
}
@ -64,7 +64,7 @@ pub fn gen_disasm(isa: &Isa, max_args: usize) -> Result<TokenStream> {
let pattern = HexLiteral(opcode.pattern);
let enum_idx = Literal::u16_unsuffixed(idx as u16);
let name = &opcode.name;
let comment = format!(" {}", name);
let comment = format!(" {name}");
let extension =
isa.extensions.iter().find(|(_, e)| e.opcodes.iter().any(|o| o.name == opcode.name));
let initializer = if let Some((id, _)) = extension {