@@ -58,7 +58,7 @@ fn unhexed_bytes(input: Vec<u8>) -> Vec<u8> {
58
58
}
59
59
60
60
if curr_byte_str. len ( ) == 2 {
61
- debug ! ( " curr_byte_str={:?}" , curr_byte_str ) ;
61
+ debug ! ( " curr_byte_str={curr_byte_str :?}" ) ;
62
62
let byte = u8:: from_str_radix ( & curr_byte_str, 16 ) . expect ( "Unexpect hex parse error" ) ;
63
63
output. push ( byte) ;
64
64
curr_byte_str. clear ( ) ;
@@ -67,7 +67,7 @@ fn unhexed_bytes(input: Vec<u8>) -> Vec<u8> {
67
67
68
68
if log:: max_level ( ) >= log:: LevelFilter :: Info {
69
69
let output_hex: Vec < String > = output. iter ( ) . map ( |x| format ! ( "{x:02x}" ) ) . collect ( ) ;
70
- info ! ( "unhexed_output = {:?}" , output_hex ) ;
70
+ info ! ( "unhexed_output = {output_hex :?}" ) ;
71
71
}
72
72
73
73
output
@@ -281,27 +281,27 @@ fn main() {
281
281
. unwrap ( ) ;
282
282
283
283
let is_hex = matches. get_flag ( HEX_ARG ) || matches. get_one :: < String > ( CODE_ARG ) . is_some ( ) ;
284
- info ! ( "is_hex = {:?}" , is_hex ) ;
284
+ info ! ( "is_hex = {is_hex :?}" ) ;
285
285
286
286
let show_detail = matches. get_flag ( DETAIL_ARG ) ;
287
- info ! ( "show_detail = {:?}" , show_detail ) ;
287
+ info ! ( "show_detail = {show_detail :?}" ) ;
288
288
289
289
let arch: Arch = Arch :: from_str ( matches. get_one :: < String > ( ARCH_ARG ) . unwrap ( ) ) . unwrap ( ) ;
290
- info ! ( "Arch = {:?}" , arch ) ;
290
+ info ! ( "Arch = {arch :?}" ) ;
291
291
292
292
let mode: Mode = Mode :: from_str ( matches. get_one :: < String > ( MODE_ARG ) . unwrap ( ) ) . unwrap ( ) ;
293
- info ! ( "Mode = {:?}" , mode ) ;
293
+ info ! ( "Mode = {mode :?}" ) ;
294
294
295
295
let extra_mode: Vec < _ > = match matches. get_many :: < String > ( EXTRA_MODE_ARG ) {
296
296
None => Vec :: with_capacity ( 0 ) ,
297
297
Some ( x) => x. map ( |x| ExtraMode :: from_str ( x) . unwrap ( ) ) . collect ( ) ,
298
298
} ;
299
- info ! ( "ExtraMode = {:?}" , extra_mode ) ;
299
+ info ! ( "ExtraMode = {extra_mode :?}" ) ;
300
300
301
301
let endian: Option < Endian > = matches
302
302
. get_one :: < String > ( ENDIAN_ARG )
303
303
. map ( |x| Endian :: from_str ( x) . expect_exit ( ) ) ;
304
- info ! ( "Endian = {:?}" , endian ) ;
304
+ info ! ( "Endian = {endian :?}" ) ;
305
305
306
306
let address = u64:: from_str_radix (
307
307
matches
@@ -310,7 +310,7 @@ fn main() {
310
310
16 ,
311
311
)
312
312
. expect_exit ( ) ;
313
- info ! ( "Address = 0x{:x}" , address ) ;
313
+ info ! ( "Address = 0x{address :x}" ) ;
314
314
315
315
let input_bytes = if is_hex {
316
316
unhexed_bytes ( direct_input_bytes)
0 commit comments