From 67c2b90b2adb97d95cd53313a0368ce6e3322c3d Mon Sep 17 00:00:00 2001 From: Eric Trombly Date: Fri, 28 Feb 2020 07:37:54 -0600 Subject: [PATCH] change rect to rectangle in graphics.rs --- src/graphics.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/graphics.rs b/src/graphics.rs index 0ce08f0..b6c2fcd 100644 --- a/src/graphics.rs +++ b/src/graphics.rs @@ -175,7 +175,7 @@ where mod tests { use self::embedded_graphics::coord::Coord; use self::embedded_graphics::prelude::*; - use self::embedded_graphics::primitives::Rect; + use self::embedded_graphics::primitives::Rectangle; use self::embedded_graphics::Drawing; use super::*; 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); display.draw( - Rect::new(Coord::new(0, 0), Coord::new(2, 2)) - .with_stroke(Some(Color::White)) + Rectangle::new(Coord::new(0, 0), Coord::new(2, 2)) + .stroke(Some(Color::White)) .into_iter(), ); } @@ -306,8 +306,8 @@ mod tests { GraphicDisplay::new(build_mock_display(), &mut black_buffer, &mut red_buffer); display.draw( - Rect::new(Coord::new(0, 0), Coord::new(2, 2)) - .with_stroke(Some(Color::Red)) + Rectangle::new(Coord::new(0, 0), Coord::new(2, 2)) + .stroke(Some(Color::Red)) .into_iter(), ); }