mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fix clippy error
This commit is contained in:
parent
f36e74e383
commit
6431c5567c
@ -191,7 +191,7 @@ impl TakeScreenshot {
|
||||
format,
|
||||
)),
|
||||
}
|
||||
.and_then(|pixel_bytes| {
|
||||
.map(|pixel_bytes| {
|
||||
let image = image::ImageBuffer::<image::Rgba<u8>, Vec<u8>>::from_vec(
|
||||
self.width,
|
||||
self.height,
|
||||
@ -200,7 +200,7 @@ impl TakeScreenshot {
|
||||
.expect(
|
||||
"Failed to create ImageBuffer! Buffer was not large enough. This should not occur",
|
||||
);
|
||||
Ok(image::DynamicImage::ImageRgba8(image))
|
||||
image::DynamicImage::ImageRgba8(image)
|
||||
});
|
||||
|
||||
// Call supplied handler
|
||||
|
Loading…
Reference in New Issue
Block a user