change rect to rectangle in graphics.rs

This commit is contained in:
Eric Trombly 2020-02-28 07:37:54 -06:00
parent 333edf10f0
commit 67c2b90b2a

View file

@ -175,7 +175,7 @@ where
mod tests { mod tests {
use self::embedded_graphics::coord::Coord; use self::embedded_graphics::coord::Coord;
use self::embedded_graphics::prelude::*; use self::embedded_graphics::prelude::*;
use self::embedded_graphics::primitives::Rect; use self::embedded_graphics::primitives::Rectangle;
use self::embedded_graphics::Drawing; use self::embedded_graphics::Drawing;
use super::*; use super::*;
use {Builder, Color, Dimensions, Display, DisplayInterface, GraphicDisplay, Rotation}; use {Builder, Color, Dimensions, Display, DisplayInterface, GraphicDisplay, Rotation};
@ -279,8 +279,8 @@ mod tests {
GraphicDisplay::new(build_mock_display(), &mut black_buffer, &mut red_buffer); GraphicDisplay::new(build_mock_display(), &mut black_buffer, &mut red_buffer);
display.draw( display.draw(
Rect::new(Coord::new(0, 0), Coord::new(2, 2)) Rectangle::new(Coord::new(0, 0), Coord::new(2, 2))
.with_stroke(Some(Color::White)) .stroke(Some(Color::White))
.into_iter(), .into_iter(),
); );
} }
@ -306,8 +306,8 @@ mod tests {
GraphicDisplay::new(build_mock_display(), &mut black_buffer, &mut red_buffer); GraphicDisplay::new(build_mock_display(), &mut black_buffer, &mut red_buffer);
display.draw( display.draw(
Rect::new(Coord::new(0, 0), Coord::new(2, 2)) Rectangle::new(Coord::new(0, 0), Coord::new(2, 2))
.with_stroke(Some(Color::Red)) .stroke(Some(Color::Red))
.into_iter(), .into_iter(),
); );
} }