Skip to content

Commit

Permalink
shorten Debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
kadiwa4 committed Mar 21, 2024
1 parent c70044c commit 56dc7f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/volatile_ptr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ where
T: ?Sized,
{
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("VolatilePtr")
.field("pointer", &self.pointer)
.field("access", &self.access)
.finish()
fmt::Pointer::fmt(&self.pointer.as_ptr(), f)
}
}

Expand Down
5 changes: 1 addition & 4 deletions src/volatile_ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,7 @@ where
T: ?Sized,
{
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("VolatileRef")
.field("pointer", &self.pointer)
.field("access", &self.access)
.finish()
fmt::Pointer::fmt(&self.pointer.as_ptr(), f)
}
}

Expand Down

0 comments on commit 56dc7f9

Please sign in to comment.