diff options
| author | spazzylemons <25674682+spazzylemons@users.noreply.github.com> | 2024-09-28 21:07:10 -0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-09-30 00:45:44 -0700 |
| commit | 80bb0d5876f8fae43791a8d6e52a38d3c1e01a72 (patch) | |
| tree | 9b87619ef9cdc69fd5edc44acf21c5cbe30e2b0a | |
| parent | c04ccafd0a2cb26c1f6a4835f4cbb01ffdb926a6 (diff) | |
| download | niri-80bb0d5876f8fae43791a8d6e52a38d3c1e01a72.tar.gz niri-80bb0d5876f8fae43791a8d6e52a38d3c1e01a72.tar.bz2 niri-80bb0d5876f8fae43791a8d6e52a38d3c1e01a72.zip | |
Remove one unnecessary .clone() call and reorder another
| -rw-r--r-- | src/niri.rs | 5 |
1 files changed, 2 insertions, 3 deletions
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() }; |
