File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 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/).
77
88## [ Unreleased]
99
10+ - Remove unneeded ` format_args ` in register ` Debug ` impl
11+
1012## [ v0.33.1] - 2024-04-20
1113
1214- 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(
476476 let f_name_n = field_accessor ( & f. name . expand_dim ( & suffix) , config, span) ;
477477 let f_name_n_s = format ! ( "{f_name_n}" ) ;
478478 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( ) )
480480 } ) ;
481481 }
482482 } else {
483483 let f_name = f. name . remove_dim ( ) ;
484484 let f_name = field_accessor ( & f_name, config, span) ;
485485 let f_name_s = format ! ( "{f_name}" ) ;
486486 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( ) )
488488 } ) ;
489489 }
490490 }
You can’t perform that action at this time.
0 commit comments