@@ -317,7 +317,7 @@ fn test_instruction_helper(
317
317
bytes : & [ u8 ] ,
318
318
has_default_syntax : bool ,
319
319
) {
320
- println ! ( "{:x?}" , insn ) ;
320
+ println ! ( "{insn :x?}" ) ;
321
321
322
322
// Check mnemonic
323
323
if has_default_syntax && cfg ! ( feature = "full" ) {
@@ -908,7 +908,7 @@ fn test_invalid_mode() {
908
908
#[ test]
909
909
fn test_capstone_version ( ) {
910
910
let ( major, minor) = Capstone :: lib_version ( ) ;
911
- println ! ( "Capstone lib version: ({}, {})" , major , minor ) ;
911
+ println ! ( "Capstone lib version: ({major }, {minor })" ) ;
912
912
assert ! ( major > 0 && major < 100 , "Invalid major version {}" , major) ;
913
913
assert ! ( minor < 500 , "Invalid minor version {}" , minor) ;
914
914
}
@@ -1885,7 +1885,7 @@ fn test_arch_bpf_cbpf() {
1885
1885
Ok ( ins) => {
1886
1886
for i in ins. as_ref ( ) {
1887
1887
println ! ( ) ;
1888
- eprintln ! ( "{}" , i ) ;
1888
+ eprintln ! ( "{i}" ) ;
1889
1889
1890
1890
let detail: InsnDetail = cs. insn_detail ( i) . expect ( "Failed to get insn detail" ) ;
1891
1891
let arch_detail: ArchDetail = detail. arch_detail ( ) ;
@@ -1931,7 +1931,7 @@ fn test_arch_bpf_ebpf() {
1931
1931
Ok ( ins) => {
1932
1932
for i in ins. as_ref ( ) {
1933
1933
println ! ( ) ;
1934
- eprintln ! ( "{}" , i ) ;
1934
+ eprintln ! ( "{i}" ) ;
1935
1935
1936
1936
let detail: InsnDetail = cs. insn_detail ( i) . expect ( "Failed to get insn detail" ) ;
1937
1937
let arch_detail: ArchDetail = detail. arch_detail ( ) ;
@@ -4719,7 +4719,7 @@ fn test_arch_riscv_detail() {
4719
4719
& [
4720
4720
Reg ( RegId ( RISCV_REG_X11 as RegIdInt ) ) ,
4721
4721
Mem ( RiscVOpMem ( riscv_op_mem {
4722
- base : RISCV_REG_X12 as u32 ,
4722
+ base : RISCV_REG_X12 ,
4723
4723
disp : 8 ,
4724
4724
} ) ) ,
4725
4725
] ,
@@ -4956,7 +4956,7 @@ fn test_issue_175() {
4956
4956
4957
4957
let insns = cs. disasm_all ( & [ 0x0c , 0x44 , 0x3b , 0xd5 ] , 0 ) . unwrap ( ) ;
4958
4958
for i in insns. as_ref ( ) {
4959
- let id = cs. insn_detail ( & i) . unwrap ( ) ;
4959
+ let id = cs. insn_detail ( i) . unwrap ( ) ;
4960
4960
let ad = id. arch_detail ( ) ;
4961
4961
let aarch = ad. aarch64 ( ) . unwrap ( ) ;
4962
4962
0 commit comments