Skip to content

Commit

Permalink
Add 0x prefix onto defmt'd pointers.
Browse files Browse the repository at this point in the history
Fixes #603
  • Loading branch information
jonathanpallant committed Mar 8, 2023
1 parent d6ce788 commit 378102f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion defmt/src/impls/primitives.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ where
T: ?Sized,
{
fn format(&self, fmt: Formatter) {
crate::write!(fmt, "{:x}", *self as *const () as usize);
crate::write!(fmt, "0x{:x}", *self as *const () as usize);
}
}

Expand Down

0 comments on commit 378102f

Please sign in to comment.