mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-28 17:19:11 +01:00
Consistent debug formatting
This commit is contained in:
1 parent
f45d500c1c
commit
c038b5c433
2 files changed
+2
-4
No files matched your search
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user