fast image operations
Diffstat (limited to 'src/drawing/line.rs')
| -rw-r--r-- | src/drawing/line.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/drawing/line.rs b/src/drawing/line.rs index 195d312..fd2b33d 100644 --- a/src/drawing/line.rs +++ b/src/drawing/line.rs @@ -1,10 +1,7 @@ //! adds a `line` function to Image #![allow(clippy::missing_docs_in_private_items)] use crate::Image; -use std::{ - iter::Iterator, - ops::{Deref, DerefMut}, -}; +use std::{iter::Iterator, ops::DerefMut}; /// taken from [bresenham-rs](https://github.com/mbr/bresenham-rs) pub struct Bresenham { @@ -130,7 +127,7 @@ impl Iterator for Bresenham { } } -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> { /// Draw a line from point a to point b. /// /// Points not in bounds will not be included. |