Update for embedded-graphics 0.5.2

This commit is contained in:
dbr
2019-08-11 11:01:12 +09:30
parent 7b4a7f0578
commit f96caeb419
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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());
}
}