Consistent debug formatting

This commit is contained in:
John-John Tedro authored and Erich Gubler committed 2024-02-02 14:31:28 -05:00
1 parent f45d500c1c
commit c038b5c433
2 files changed
+2 -4

No files matched your search

+1 -3
View File
@@ -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)
}
}
+1 -1
View File
@@ -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)
}
}