Skip to content

Commit

Permalink
minor bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ripytide committed May 25, 2024
1 parent 5cb51f0 commit ab0c4f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/map.rs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down Expand Up @@ -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<I, P, F>(image: &mut Image<P>, f: F)
pub fn map_subpixels_mut<P, F>(image: &mut Image<P>, f: F)
where
P: Pixel,
F: Fn(P::Subpixel) -> P::Subpixel,
Expand Down

0 comments on commit ab0c4f6

Please sign in to comment.