diff --git a/src/platform_impl/ios/monitor.rs b/src/platform_impl/ios/monitor.rs index 42c71ffc7a..4ba3a3dbb3 100644 --- a/src/platform_impl/ios/monitor.rs +++ b/src/platform_impl/ios/monitor.rs @@ -168,7 +168,9 @@ impl Drop for MonitorHandle { impl fmt::Debug for MonitorHandle { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + // TODO: Do this using the proper fmt API #[derive(Debug)] + #[allow(dead_code)] struct MonitorHandle { name: Option, size: PhysicalSize, diff --git a/src/platform_impl/macos/monitor.rs b/src/platform_impl/macos/monitor.rs index 817d38ee57..cf16f97dbc 100644 --- a/src/platform_impl/macos/monitor.rs +++ b/src/platform_impl/macos/monitor.rs @@ -162,6 +162,7 @@ impl fmt::Debug for MonitorHandle { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { // TODO: Do this using the proper fmt API #[derive(Debug)] + #[allow(dead_code)] struct MonitorHandle { name: Option, native_identifier: u32,