Skip to content

Commit

Permalink
Consistent debug formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
udoprog authored and ErichDonGubler committed Feb 2, 2024
1 parent f45d500 commit c038b5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions wgpu-core/src/any_surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ impl Drop for AnySurface {

impl fmt::Debug for AnySurface {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_tuple("AnySurface")
.field(&self.vtable.backend)
.finish()
write!(f, "AnySurface<{}>", self.vtable.backend)
}
}

Expand Down
2 changes: 1 addition & 1 deletion wgpu-core/src/device/any_device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl Drop for AnyDevice {

impl fmt::Debug for AnyDevice {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "AnyDevice")
write!(f, "AnyDevice<{}>", self.vtable.backend)
}
}

Expand Down

0 comments on commit c038b5c

Please sign in to comment.