File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ main() {
4747 echo ' portable-atomic = { version = "1.4", default-features = false }' >> $td /Cargo.toml
4848 fi
4949 if [[ " $options " == * " --impl_defmt" * ]]; then
50- echo ' defmt = "0.3.5"' >> $td /Cargo.toml
50+ echo ' defmt = { version = "0.3.5", optional = true } ' >> $td /Cargo.toml
5151 fi
5252 echo ' [profile.dev]' >> $td /Cargo.toml
5353 echo ' incremental = false' >> $td /Cargo.toml
Original file line number Diff line number Diff line change @@ -309,7 +309,7 @@ pub fn render_register_mod(
309309 #debug_feature
310310 impl core:: fmt:: Debug for crate :: generic:: Reg <#regspec_ident> {
311311 fn fmt( & self , f: & mut core:: fmt:: Formatter <' _>) -> core:: fmt:: Result {
312- self . read( ) . fmt ( f)
312+ core :: fmt :: Debug :: fmt ( & self . read( ) , f)
313313 }
314314 }
315315 } ) ;
@@ -491,7 +491,7 @@ fn render_register_mod_debug(
491491 #debug_feature
492492 impl core:: fmt:: Debug for crate :: generic:: Reg <#regspec_ident> {
493493 fn fmt( & self , f: & mut core:: fmt:: Formatter <' _>) -> core:: fmt:: Result {
494- self . read( ) . fmt ( f)
494+ core :: fmt :: Debug :: fmt ( & self . read( ) , f)
495495 }
496496 }
497497 } ) ;
You can’t perform that action at this time.
0 commit comments