From ab0c4f6f1b9c71c5e61d493c51685832ef8d0a02 Mon Sep 17 00:00:00 2001 From: ripytide Date: Sat, 25 May 2024 14:04:42 +0100 Subject: [PATCH] minor bugfix --- src/map.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map.rs b/src/map.rs index c95eab43..773f9597 100644 --- a/src/map.rs +++ b/src/map.rs @@ -1,6 +1,6 @@ //! Functions for mapping pixels and subpixels of images. -use image::{GenericImage, Luma, LumaA, Pixel, Primitive, Rgb, Rgba}; +use image::{Luma, LumaA, Pixel, Primitive, Rgb, Rgba}; use crate::definitions::Image; @@ -88,7 +88,7 @@ where .expect("of course the length is good, it's just a map") } #[doc=generate_mut_doc_comment!("map_subpixels")] -pub fn map_subpixels_mut(image: &mut Image

, f: F) +pub fn map_subpixels_mut(image: &mut Image

, f: F) where P: Pixel, F: Fn(P::Subpixel) -> P::Subpixel,