From 68273a46abc70b4090bc95906c658f86ea430d53 Mon Sep 17 00:00:00 2001 From: Philippe Renon Date: Sun, 28 Nov 2021 13:45:51 +0100 Subject: [PATCH] Ignore unread field warning in macos/ios MonitorHandle struct --- src/platform_impl/ios/monitor.rs | 2 ++ src/platform_impl/macos/monitor.rs | 1 + 2 files changed, 3 insertions(+) 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,