Edition 2018 (#24)

* "cargo fix --edition" for the library

* Switch to 2018 edition

* Use cargo fix edition-idioms and remove the internal renaming from embedded_hal to hal

* Updated Readme

* run cargo fmt
This commit is contained in:
Chris
2019-02-22 11:23:28 +01:00
committed by GitHub
parent 91b723d30e
commit d7f3cdca97
15 changed files with 49 additions and 50 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
use epd1in54::{DEFAULT_BACKGROUND_COLOR, HEIGHT, WIDTH};
use crate::epd1in54::{DEFAULT_BACKGROUND_COLOR, HEIGHT, WIDTH};
/// Full size buffer for use with the 1in54 EPD
///
@@ -20,11 +20,11 @@ impl Default for Buffer1in54BlackWhite {
#[cfg(test)]
mod tests {
use super::*;
use color::Color;
use crate::color::Color;
use crate::graphics::{Display, DisplayRotation};
use embedded_graphics::coord::Coord;
use embedded_graphics::prelude::*;
use embedded_graphics::primitives::Line;
use graphics::{Display, DisplayRotation};
// test buffer length
#[test]
+6 -6
View File
@@ -38,24 +38,24 @@ pub const HEIGHT: u32 = 200;
//const DPI: u16 = 184;
pub const DEFAULT_BACKGROUND_COLOR: Color = Color::White;
use hal::{
use embedded_hal::{
blocking::{delay::*, spi::Write},
digital::*,
};
use type_a::{
use crate::type_a::{
command::Command,
constants::{LUT_FULL_UPDATE, LUT_PARTIAL_UPDATE},
};
use color::Color;
use crate::color::Color;
use traits::{RefreshLUT, WaveshareDisplay};
use crate::traits::{RefreshLUT, WaveshareDisplay};
use interface::DisplayInterface;
use crate::interface::DisplayInterface;
mod graphics;
pub use epd1in54::graphics::Buffer1in54BlackWhite as Buffer1in54;
pub use crate::epd1in54::graphics::Buffer1in54BlackWhite as Buffer1in54;
/// EPD1in54 driver
///