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() {
47
47
echo ' portable-atomic = { version = "1.4", default-features = false }' >> $td /Cargo.toml
48
48
fi
49
49
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
51
51
fi
52
52
echo ' [profile.dev]' >> $td /Cargo.toml
53
53
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(
309
309
#debug_feature
310
310
impl core:: fmt:: Debug for crate :: generic:: Reg <#regspec_ident> {
311
311
fn fmt( & self , f: & mut core:: fmt:: Formatter <' _>) -> core:: fmt:: Result {
312
- self . read( ) . fmt ( f)
312
+ core :: fmt :: Debug :: fmt ( & self . read( ) , f)
313
313
}
314
314
}
315
315
} ) ;
@@ -491,7 +491,7 @@ fn render_register_mod_debug(
491
491
#debug_feature
492
492
impl core:: fmt:: Debug for crate :: generic:: Reg <#regspec_ident> {
493
493
fn fmt( & self , f: & mut core:: fmt:: Formatter <' _>) -> core:: fmt:: Result {
494
- self . read( ) . fmt ( f)
494
+ core :: fmt :: Debug :: fmt ( & self . read( ) , f)
495
495
}
496
496
}
497
497
} ) ;
You can’t perform that action at this time.
0 commit comments