diff --git a/crates/eframe/src/epi/icon_data.rs b/crates/eframe/src/epi/icon_data.rs index c62b6a689a1..078b57714f1 100644 --- a/crates/eframe/src/epi/icon_data.rs +++ b/crates/eframe/src/epi/icon_data.rs @@ -14,6 +14,15 @@ pub struct IconData { pub height: u32, } +impl std::fmt::Debug for IconData { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + f.debug_struct("IconData") + .field("width", &self.width) + .field("height", &self.height) + .finish_non_exhaustive() + } +} + impl IconData { /// Convert into [`image::RgbaImage`] /// diff --git a/crates/egui-wgpu/src/lib.rs b/crates/egui-wgpu/src/lib.rs index 8d9d5912c5d..a46e185e883 100644 --- a/crates/egui-wgpu/src/lib.rs +++ b/crates/egui-wgpu/src/lib.rs @@ -123,6 +123,16 @@ pub struct WgpuConfiguration { pub on_surface_error: Arc SurfaceErrorAction>, } +impl std::fmt::Debug for WgpuConfiguration { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + f.debug_struct("WgpuConfiguration") + .field("supported_backends", &self.supported_backends) + .field("present_mode", &self.present_mode) + .field("power_preference", &self.power_preference) + .finish_non_exhaustive() + } +} + impl Default for WgpuConfiguration { fn default() -> Self { Self {