Skip to content

Commit 5a086fd

Browse files
committed
Clippy fix
1 parent 72a3f47 commit 5a086fd

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

objdiff-core/src/arch/ppc.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,7 @@ impl ObjArch for ObjArchPpc {
207207
return Some(DataType::String);
208208
}
209209

210-
let op = Opcode::from(instruction.op as u8);
211-
if let Some(ty) = guess_data_type_from_load_store_inst_op(op) {
212-
Some(ty)
213-
} else {
214-
None
215-
}
210+
guess_data_type_from_load_store_inst_op(Opcode::from(instruction.op as u8))
216211
}
217212

218213
fn display_data_type(&self, ty: DataType, bytes: &[u8]) -> Option<String> {

0 commit comments

Comments
 (0)