forge
Explore
Log in

Don't you dare go Hollow

Remove unnecessary mut

Browse files at this commit

b65fad09d8f5253a28ee7ad9d293583641fc2c36Ivan MolodetskikhParent: 09a559d
src/niri.rsmodified+1 -1
@@ -2630,7 +2630,7 @@ impl Niri {
2630 /// locations to global space according to where they are rendered.2630 /// locations to global space according to where they are rendered.
2631 ///2631 ///
2632 /// This function does not take pointer or touch grabs into account.2632 /// This function does not take pointer or touch grabs into account.
2633- pub fn contents_under(&mut self, pos: Point<f64, Logical>) -> PointContents {2633+ pub fn contents_under(&self, pos: Point<f64, Logical>) -> PointContents {
2634 let mut rv = PointContents::default();2634 let mut rv = PointContents::default();
2635 2635
2636 let Some((output, pos_within_output)) = self.output_under(pos) else {2636 let Some((output, pos_within_output)) = self.output_under(pos) else {