@@ -143,25 +143,25 @@ impl MonitorLayout { |
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | // Helper functions to find closest neighbor |
| 146 | | - fn is_closer_left(&self, current: &MonitorInfo, other: &MonitorInfo, existing: &Option<String>) -> bool { |
| 146 | + fn is_closer_left(&self, _current: &MonitorInfo, other: &MonitorInfo, existing: &Option<String>) -> bool { |
| 147 | 147 | let Some(existing_name) = existing else { return true }; |
| 148 | 148 | let Some(existing_mon) = self.monitors.get(existing_name) else { return true }; |
| 149 | 149 | other.x + other.width as i32 > existing_mon.x + existing_mon.width as i32 |
| 150 | 150 | } |
| 151 | 151 | |
| 152 | | - fn is_closer_right(&self, current: &MonitorInfo, other: &MonitorInfo, existing: &Option<String>) -> bool { |
| 152 | + fn is_closer_right(&self, _current: &MonitorInfo, other: &MonitorInfo, existing: &Option<String>) -> bool { |
| 153 | 153 | let Some(existing_name) = existing else { return true }; |
| 154 | 154 | let Some(existing_mon) = self.monitors.get(existing_name) else { return true }; |
| 155 | 155 | other.x < existing_mon.x |
| 156 | 156 | } |
| 157 | 157 | |
| 158 | | - fn is_closer_up(&self, current: &MonitorInfo, other: &MonitorInfo, existing: &Option<String>) -> bool { |
| 158 | + fn is_closer_up(&self, _current: &MonitorInfo, other: &MonitorInfo, existing: &Option<String>) -> bool { |
| 159 | 159 | let Some(existing_name) = existing else { return true }; |
| 160 | 160 | let Some(existing_mon) = self.monitors.get(existing_name) else { return true }; |
| 161 | 161 | other.y + other.height as i32 > existing_mon.y + existing_mon.height as i32 |
| 162 | 162 | } |
| 163 | 163 | |
| 164 | | - fn is_closer_down(&self, current: &MonitorInfo, other: &MonitorInfo, existing: &Option<String>) -> bool { |
| 164 | + fn is_closer_down(&self, _current: &MonitorInfo, other: &MonitorInfo, existing: &Option<String>) -> bool { |
| 165 | 165 | let Some(existing_name) = existing else { return true }; |
| 166 | 166 | let Some(existing_mon) = self.monitors.get(existing_name) else { return true }; |
| 167 | 167 | other.y < existing_mon.y |