mirror of
https://github.com/encounter/ppc750cl.git
synced 2025-10-07 18:59:42 +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(" >= ") {
|
} else if let Some((field, value)) = tok.split_once(" >= ") {
|
||||||
(field, value, ConditionOp::Gte)
|
(field, value, ConditionOp::Gte)
|
||||||
} else {
|
} else {
|
||||||
log::error!("Invalid condition: {}", tok);
|
log::error!("Invalid condition: {tok}");
|
||||||
continue;
|
continue;
|
||||||
};
|
};
|
||||||
let mut field_mask = u32::MAX;
|
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]) {
|
} else if let Some(op) = (entry.count == 1).then(|| &sorted_ops[entry.start as usize]) {
|
||||||
log::info!("{:#X}: {}", i, op.name);
|
log::info!("{:#X}: {}", i, op.name);
|
||||||
} else {
|
} else {
|
||||||
log::info!("{:#X}: <invalid>", i);
|
log::info!("{i:#X}: <invalid>");
|
||||||
}
|
}
|
||||||
entries.push(entry);
|
entries.push(entry);
|
||||||
}
|
}
|
||||||
@ -64,7 +64,7 @@ pub fn gen_disasm(isa: &Isa, max_args: usize) -> Result<TokenStream> {
|
|||||||
let pattern = HexLiteral(opcode.pattern);
|
let pattern = HexLiteral(opcode.pattern);
|
||||||
let enum_idx = Literal::u16_unsuffixed(idx as u16);
|
let enum_idx = Literal::u16_unsuffixed(idx as u16);
|
||||||
let name = &opcode.name;
|
let name = &opcode.name;
|
||||||
let comment = format!(" {}", name);
|
let comment = format!(" {name}");
|
||||||
let extension =
|
let extension =
|
||||||
isa.extensions.iter().find(|(_, e)| e.opcodes.iter().any(|o| o.name == opcode.name));
|
isa.extensions.iter().find(|(_, e)| e.opcodes.iter().any(|o| o.name == opcode.name));
|
||||||
let initializer = if let Some((id, _)) = extension {
|
let initializer = if let Some((id, _)) = extension {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user