@@ -58,7 +58,7 @@ fn unhexed_bytes(input: Vec<u8>) -> Vec<u8> {
5858 }
5959
6060 if curr_byte_str. len ( ) == 2 {
61- debug ! ( " curr_byte_str={:?}" , curr_byte_str ) ;
61+ debug ! ( " curr_byte_str={curr_byte_str :?}" ) ;
6262 let byte = u8:: from_str_radix ( & curr_byte_str, 16 ) . expect ( "Unexpect hex parse error" ) ;
6363 output. push ( byte) ;
6464 curr_byte_str. clear ( ) ;
@@ -67,7 +67,7 @@ fn unhexed_bytes(input: Vec<u8>) -> Vec<u8> {
6767
6868 if log:: max_level ( ) >= log:: LevelFilter :: Info {
6969 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 :?}" ) ;
7171 }
7272
7373 output
@@ -281,27 +281,27 @@ fn main() {
281281 . unwrap ( ) ;
282282
283283 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 :?}" ) ;
285285
286286 let show_detail = matches. get_flag ( DETAIL_ARG ) ;
287- info ! ( "show_detail = {:?}" , show_detail ) ;
287+ info ! ( "show_detail = {show_detail :?}" ) ;
288288
289289 let arch: Arch = Arch :: from_str ( matches. get_one :: < String > ( ARCH_ARG ) . unwrap ( ) ) . unwrap ( ) ;
290- info ! ( "Arch = {:?}" , arch ) ;
290+ info ! ( "Arch = {arch :?}" ) ;
291291
292292 let mode: Mode = Mode :: from_str ( matches. get_one :: < String > ( MODE_ARG ) . unwrap ( ) ) . unwrap ( ) ;
293- info ! ( "Mode = {:?}" , mode ) ;
293+ info ! ( "Mode = {mode :?}" ) ;
294294
295295 let extra_mode: Vec < _ > = match matches. get_many :: < String > ( EXTRA_MODE_ARG ) {
296296 None => Vec :: with_capacity ( 0 ) ,
297297 Some ( x) => x. map ( |x| ExtraMode :: from_str ( x) . unwrap ( ) ) . collect ( ) ,
298298 } ;
299- info ! ( "ExtraMode = {:?}" , extra_mode ) ;
299+ info ! ( "ExtraMode = {extra_mode :?}" ) ;
300300
301301 let endian: Option < Endian > = matches
302302 . get_one :: < String > ( ENDIAN_ARG )
303303 . map ( |x| Endian :: from_str ( x) . expect_exit ( ) ) ;
304- info ! ( "Endian = {:?}" , endian ) ;
304+ info ! ( "Endian = {endian :?}" ) ;
305305
306306 let address = u64:: from_str_radix (
307307 matches
@@ -310,7 +310,7 @@ fn main() {
310310 16 ,
311311 )
312312 . expect_exit ( ) ;
313- info ! ( "Address = 0x{:x}" , address ) ;
313+ info ! ( "Address = 0x{address :x}" ) ;
314314
315315 let input_bytes = if is_hex {
316316 unhexed_bytes ( direct_input_bytes)
0 commit comments