mirror of
https://github.com/encounter/ppc750cl.git
synced 2025-10-04 17:29:41 +00:00
clippy fixes
This commit is contained in:
parent
108aa7673a
commit
817ce36ee3
@ -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;
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user