File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
7
7
8
8
## [ Unreleased]
9
9
10
+ - Remove unneeded ` format_args ` in register ` Debug ` impl
11
+
10
12
## [ v0.33.1] - 2024-04-20
11
13
12
14
- Add checked ` set ` for not full safe fields
Original file line number Diff line number Diff line change @@ -476,15 +476,15 @@ fn render_register_mod_debug(
476
476
let f_name_n = field_accessor ( & f. name . expand_dim ( & suffix) , config, span) ;
477
477
let f_name_n_s = format ! ( "{f_name_n}" ) ;
478
478
r_debug_impl. extend ( quote ! {
479
- . field( #f_name_n_s, & format_args! ( "{}" , self . #f_name_n( ) . #bit_or_bits( ) ) )
479
+ . field( #f_name_n_s, & self . #f_name_n( ) . #bit_or_bits( ) )
480
480
} ) ;
481
481
}
482
482
} else {
483
483
let f_name = f. name . remove_dim ( ) ;
484
484
let f_name = field_accessor ( & f_name, config, span) ;
485
485
let f_name_s = format ! ( "{f_name}" ) ;
486
486
r_debug_impl. extend ( quote ! {
487
- . field( #f_name_s, & format_args! ( "{}" , self . #f_name( ) . #bit_or_bits( ) ) )
487
+ . field( #f_name_s, & self . #f_name( ) . #bit_or_bits( ) )
488
488
} ) ;
489
489
}
490
490
}
You can’t perform that action at this time.
0 commit comments