diff --git a/src/platform_impl/ios/monitor.rs b/src/platform_impl/ios/monitor.rs index cc80671d1f..90ed85047d 100644 --- a/src/platform_impl/ios/monitor.rs +++ b/src/platform_impl/ios/monitor.rs @@ -2,7 +2,7 @@ use std::{ collections::{BTreeSet, VecDeque}, - fmt, hash, + fmt, hash, ptr, }; use icrate::Foundation::{MainThreadBound, MainThreadMarker, NSInteger}; @@ -116,7 +116,7 @@ impl hash::Hash for MonitorHandle { impl PartialEq for MonitorHandle { fn eq(&self, other: &Self) -> bool { - (self as *const Self) == (other as *const Self) + ptr::eq(self, other) } } @@ -226,7 +226,7 @@ impl MonitorHandle { } pub(crate) fn ui_screen(&self, mtm: MainThreadMarker) -> &Id { - &self.ui_screen.get(mtm) + self.ui_screen.get(mtm) } pub fn preferred_video_mode(&self) -> VideoMode {