diff --git a/algorithms/src/rect/region.rs b/algorithms/src/rect/region.rs index 4c286471..f4afdaa5 100644 --- a/algorithms/src/rect/region.rs +++ b/algorithms/src/rect/region.rs @@ -393,6 +393,7 @@ pub fn rects_to_bands(rects_tmp: &[RectRaw]) -> Container { let mut res = Container::new(); for &[y1, y2] in ys.array_windows_ext::<2>() { + #[allow(clippy::never_loop)] loop { macro_rules! check_rect { ($rect:expr) => {{ diff --git a/src/backends/x.rs b/src/backends/x.rs index 1d3553b4..4bb9562b 100644 --- a/src/backends/x.rs +++ b/src/backends/x.rs @@ -557,7 +557,7 @@ impl XBackend { height_mm: output.height.get(), })); output.changed(); - self.present(&output).await; + self.present(output).await; } async fn query_devices(self: &Rc, deviceid: u16) -> Result<(), XBackendError> {