From 80bb0d5876f8fae43791a8d6e52a38d3c1e01a72 Mon Sep 17 00:00:00 2001 From: spazzylemons <25674682+spazzylemons@users.noreply.github.com> Date: Sat, 28 Sep 2024 21:07:10 -0400 Subject: Remove one unnecessary .clone() call and reorder another --- src/niri.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/niri.rs b/src/niri.rs index 9e432319..bdebe8bd 100644 --- a/src/niri.rs +++ b/src/niri.rs @@ -634,7 +634,6 @@ impl State { let Some(output) = self.niri.layout.active_output() else { return false; }; - let output = output.clone(); let monitor = self.niri.layout.monitor_for_output(&output).unwrap(); let mut rv = false; @@ -2667,7 +2666,7 @@ impl Niri { .tablet_cursor_location .unwrap_or_else(|| self.seat.get_pointer().unwrap().current_location()); - match self.cursor_manager.cursor_image().clone() { + match self.cursor_manager.cursor_image() { CursorImageStatus::Surface(ref surface) => { let hotspot = with_states(surface, |states| { states @@ -2751,7 +2750,7 @@ impl Niri { }; let icon = if let CursorImageStatus::Named(icon) = cursor_image { - icon + icon.clone() } else { Default::default() }; -- cgit