fast image operations
Diffstat (limited to 'src/drawing/poly.rs')
| -rw-r--r-- | src/drawing/poly.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drawing/poly.rs b/src/drawing/poly.rs index aa86168..0799457 100644 --- a/src/drawing/poly.rs +++ b/src/drawing/poly.rs @@ -1,12 +1,12 @@ //! draw polygons use std::{ cmp::{max, min}, - ops::{Deref, DerefMut}, + ops::DerefMut, }; use crate::Image; -impl<T: Deref<Target = [u8]> + DerefMut<Target = [u8]>, const CHANNELS: usize> Image<T, CHANNELS> { +impl<T: DerefMut<Target = [u8]>, const CHANNELS: usize> Image<T, CHANNELS> { /// Draws a filled polygon from a slice of points. Please close your poly. (first == last) /// /// Borrowed from [imageproc](https://docs.rs/imageproc/latest/src/imageproc/drawing/polygon.rs.html#31), modified for less allocations. |