diff --git a/wgpu-core/src/any_surface.rs b/wgpu-core/src/any_surface.rs index cb6f9eb57..94edfc443 100644 --- a/wgpu-core/src/any_surface.rs +++ b/wgpu-core/src/any_surface.rs @@ -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) } } diff --git a/wgpu-core/src/device/any_device.rs b/wgpu-core/src/device/any_device.rs index d08c23cf9..43ea9411d 100644 --- a/wgpu-core/src/device/any_device.rs +++ b/wgpu-core/src/device/any_device.rs @@ -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) } }