From c94f6c44341bf44fa2722307460c33d0c4603ebc Mon Sep 17 00:00:00 2001 From: pi Date: Thu, 15 Apr 2021 10:27:30 +0100 Subject: [PATCH] epd7in5 HD: Renamed epd7in5 struct for Clippy --- src/epd7in5_hd/mod.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/epd7in5_hd/mod.rs b/src/epd7in5_hd/mod.rs index 799d184..ab36a70 100644 --- a/src/epd7in5_hd/mod.rs +++ b/src/epd7in5_hd/mod.rs @@ -36,7 +36,7 @@ const IS_BUSY_LOW: bool = false; /// EPD7in5 (HD) driver /// -pub struct EPD7in5 { +pub struct Epd7in5 { /// Connection Interface interface: DisplayInterface, /// Background Color @@ -44,7 +44,7 @@ pub struct EPD7in5 { } impl InternalWiAdditions - for EPD7in5 + for Epd7in5 where SPI: Write, CS: OutputPin, @@ -100,7 +100,7 @@ where } impl WaveshareDisplay - for EPD7in5 + for Epd7in5 where SPI: Write, CS: OutputPin, @@ -120,7 +120,7 @@ where let interface = DisplayInterface::new(cs, busy, dc, rst); let color = DEFAULT_BACKGROUND_COLOR; - let mut epd = EPD7in5 { interface, color }; + let mut epd = Epd7in5 { interface, color }; epd.init(spi, delay)?; @@ -221,7 +221,7 @@ where } } -impl EPD7in5 +impl Epd7in5 where SPI: Write, CS: OutputPin,