@@ -317,7 +317,7 @@ fn test_instruction_helper(
317317 bytes : & [ u8 ] ,
318318 has_default_syntax : bool ,
319319) {
320- println ! ( "{:x?}" , insn ) ;
320+ println ! ( "{insn :x?}" ) ;
321321
322322 // Check mnemonic
323323 if has_default_syntax && cfg ! ( feature = "full" ) {
@@ -908,7 +908,7 @@ fn test_invalid_mode() {
908908#[ test]
909909fn test_capstone_version ( ) {
910910 let ( major, minor) = Capstone :: lib_version ( ) ;
911- println ! ( "Capstone lib version: ({}, {})" , major , minor ) ;
911+ println ! ( "Capstone lib version: ({major }, {minor })" ) ;
912912 assert ! ( major > 0 && major < 100 , "Invalid major version {}" , major) ;
913913 assert ! ( minor < 500 , "Invalid minor version {}" , minor) ;
914914}
@@ -1885,7 +1885,7 @@ fn test_arch_bpf_cbpf() {
18851885 Ok ( ins) => {
18861886 for i in ins. as_ref ( ) {
18871887 println ! ( ) ;
1888- eprintln ! ( "{}" , i ) ;
1888+ eprintln ! ( "{i}" ) ;
18891889
18901890 let detail: InsnDetail = cs. insn_detail ( i) . expect ( "Failed to get insn detail" ) ;
18911891 let arch_detail: ArchDetail = detail. arch_detail ( ) ;
@@ -1931,7 +1931,7 @@ fn test_arch_bpf_ebpf() {
19311931 Ok ( ins) => {
19321932 for i in ins. as_ref ( ) {
19331933 println ! ( ) ;
1934- eprintln ! ( "{}" , i ) ;
1934+ eprintln ! ( "{i}" ) ;
19351935
19361936 let detail: InsnDetail = cs. insn_detail ( i) . expect ( "Failed to get insn detail" ) ;
19371937 let arch_detail: ArchDetail = detail. arch_detail ( ) ;
@@ -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 ] ,
@@ -4956,7 +4956,7 @@ fn test_issue_175() {
49564956
49574957 let insns = cs. disasm_all ( & [ 0x0c , 0x44 , 0x3b , 0xd5 ] , 0 ) . unwrap ( ) ;
49584958 for i in insns. as_ref ( ) {
4959- let id = cs. insn_detail ( & i) . unwrap ( ) ;
4959+ let id = cs. insn_detail ( i) . unwrap ( ) ;
49604960 let ad = id. arch_detail ( ) ;
49614961 let aarch = ad. aarch64 ( ) . unwrap ( ) ;
49624962
0 commit comments