Skip to content

Commit 6c99b35

Browse files
committed
rs: apply cargo clippy
1 parent 05aea5d commit 6c99b35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

capstone-rs/src/test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4719,7 +4719,7 @@ fn test_arch_riscv_detail() {
47194719
&[
47204720
Reg(RegId(RISCV_REG_X11 as RegIdInt)),
47214721
Mem(RiscVOpMem(riscv_op_mem {
4722-
base: RISCV_REG_X12 as u32,
4722+
base: RISCV_REG_X12,
47234723
disp: 8,
47244724
})),
47254725
],
@@ -4966,7 +4966,7 @@ fn test_issue_175() {
49664966

49674967
let insns = cs.disasm_all(&[0x0c, 0x44, 0x3b, 0xd5], 0).unwrap();
49684968
for i in insns.as_ref() {
4969-
let id = cs.insn_detail(&i).unwrap();
4969+
let id = cs.insn_detail(i).unwrap();
49704970
let ad = id.arch_detail();
49714971
let aarch = ad.aarch64().unwrap();
49724972

0 commit comments

Comments
 (0)