Skip to content

Commit

Permalink
Appease clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Aug 25, 2023
1 parent 588a2ba commit f94bde1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/platform_impl/ios/monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use std::{
collections::{BTreeSet, VecDeque},
fmt, hash,
fmt, hash, ptr,
};

use icrate::Foundation::{MainThreadBound, MainThreadMarker, NSInteger};
Expand Down Expand Up @@ -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)
}
}

Expand Down Expand Up @@ -226,7 +226,7 @@ impl MonitorHandle {
}

pub(crate) fn ui_screen(&self, mtm: MainThreadMarker) -> &Id<UIScreen> {
&self.ui_screen.get(mtm)
self.ui_screen.get(mtm)
}

pub fn preferred_video_mode(&self) -> VideoMode {
Expand Down

0 comments on commit f94bde1

Please sign in to comment.