Update for embedded-graphics 0.5.2

embedded-hal-1.0
dbr 2019-08-11 11:01:12 +09:30
parent 7b4a7f0578
commit f96caeb419
3 changed files with 5 additions and 5 deletions

View File

@ -30,7 +30,7 @@ type_a_alternative_faster_lut = []
[dependencies.embedded-graphics] [dependencies.embedded-graphics]
optional = true optional = true
version = "0.4.3" version = "0.5.2"
[dependencies.embedded-hal] [dependencies.embedded-hal]
features = ["unproven"] features = ["unproven"]

View File

@ -25,9 +25,9 @@ impl Default for Display4in2 {
impl Drawing<Color> for Display4in2 { impl Drawing<Color> for Display4in2 {
fn draw<T>(&mut self, item_pixels: T) fn draw<T>(&mut self, item_pixels: T)
where 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());
} }
} }

View File

@ -122,9 +122,9 @@ impl<'a> VarDisplay<'a> {
impl<'a> Drawing<Color> for VarDisplay<'a> { impl<'a> Drawing<Color> for VarDisplay<'a> {
fn draw<T>(&mut self, item_pixels: T) fn draw<T>(&mut self, item_pixels: T)
where where
T: Iterator<Item = Pixel<Color>>, T: IntoIterator<Item = Pixel<Color>>,
{ {
self.draw_helper(self.width, self.height, item_pixels); self.draw_helper(self.width, self.height, item_pixels.into_iter());
} }
} }