mirror of
https://github.com/Feliix42/ssd1675.git
synced 2024-11-24 03:36:30 +00:00
change rect to rectangle in graphics.rs
This commit is contained in:
parent
333edf10f0
commit
67c2b90b2a
1 changed files with 5 additions and 5 deletions
|
@ -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(),
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue