We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acafb7c commit 907d92bCopy full SHA for 907d92b
src/addr.rs
@@ -202,7 +202,9 @@ impl VirtAddr {
202
203
impl fmt::Debug for VirtAddr {
204
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
205
- write!(f, "VirtAddr({:#x})", self.0)
+ f.debug_tuple("VirtAddr")
206
+ .field(&format_args!("{:#x}", self.0))
207
+ .finish()
208
}
209
210
@@ -407,7 +409,9 @@ impl PhysAddr {
407
409
408
410
impl fmt::Debug for PhysAddr {
411
- write!(f, "PhysAddr({:#x})", self.0)
412
+ f.debug_tuple("PhysAddr")
413
414
415
416
417
0 commit comments