mirror of
https://github.com/Anshorei/epd-waveshare.git
synced 2026-10-03 22:06:43 +00:00
Update for embedded-graphics 0.5.2
This commit is contained in:
@@ -25,9 +25,9 @@ impl Default for Display4in2 {
|
||||
impl Drawing<Color> for Display4in2 {
|
||||
fn draw<T>(&mut self, item_pixels: T)
|
||||
where
|
||||
T: Iterator<Item = Pixel<Color>>,
|
||||
T: IntoIterator<Item = Pixel<Color>>,
|
||||
{
|
||||
self.draw_helper(WIDTH, HEIGHT, item_pixels);
|
||||
self.draw_helper(WIDTH, HEIGHT, item_pixels.into_iter());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user