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,