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