Fix all warnings previously generated by clippy

This commit is contained in:
2026-03-17 20:24:12 +01:00
parent 3038c29c57
commit 20cc6e210e
6 changed files with 14 additions and 24 deletions
+4 -4
View File
@@ -394,24 +394,24 @@ impl ScreenshotManager {
flipped[dst_offset..dst_offset + src_stride]
.copy_from_slice(&converted_data[src_offset..src_offset + src_stride]);
}
return Ok(ImageSurface::create_for_data(
return ImageSurface::create_for_data(
flipped,
cairo::Format::ARgb32,
info.width as i32,
info.height as i32,
src_stride as i32,
)
.context("Failed to create flipped Cairo surface")?);
.context("Failed to create flipped Cairo surface");
}
Ok(ImageSurface::create_for_data(
ImageSurface::create_for_data(
converted_data,
cairo::Format::ARgb32,
info.width as i32,
info.height as i32,
pixel_width as i32,
)
.context("Failed to create Cairo surface")?)
.context("Failed to create Cairo surface")
}
}