From 740a0d5b900cc008c7bc93ed354bb417810f6d26 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Fri, 23 Dec 2022 18:24:26 +0100 Subject: [PATCH] Appease clippy --- src/platform_impl/ios/monitor.rs | 2 +- src/platform_impl/ios/view.rs | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/platform_impl/ios/monitor.rs b/src/platform_impl/ios/monitor.rs index 8deba63631..f5273ebdab 100644 --- a/src/platform_impl/ios/monitor.rs +++ b/src/platform_impl/ios/monitor.rs @@ -82,7 +82,7 @@ impl PartialOrd for MonitorHandle { impl Ord for MonitorHandle { fn cmp(&self, other: &Self) -> std::cmp::Ordering { // TODO: Make a better ordering - (&(self as *const Self)).cmp(&(other as *const Self)) + (self as *const Self).cmp(&(other as *const Self)) } } diff --git a/src/platform_impl/ios/view.rs b/src/platform_impl/ios/view.rs index b185c2b6b7..04da35b0e7 100644 --- a/src/platform_impl/ios/view.rs +++ b/src/platform_impl/ios/view.rs @@ -460,15 +460,13 @@ impl WinitUIWindow { let monitor = video_mode.monitor(); let screen = monitor.ui_screen(); screen.setCurrentMode(Some(&video_mode.screen_mode.0)); - this.setScreen(&screen); + this.setScreen(screen); } - Some(Fullscreen::Borderless(ref monitor)) => { - if let Some(monitor) = &monitor { - let screen = monitor.ui_screen(); - this.setScreen(&screen); - }; + Some(Fullscreen::Borderless(Some(ref monitor))) => { + let screen = monitor.ui_screen(); + this.setScreen(screen); } - None => (), + _ => (), } this