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
+2 -2
View File
@@ -1,4 +1,4 @@
use epd2in9::{DEFAULT_BACKGROUND_COLOR, HEIGHT, WIDTH};
use crate::epd2in9::{DEFAULT_BACKGROUND_COLOR, HEIGHT, WIDTH};
/// Full size buffer for use with the 2in9 EPD
///
@@ -20,7 +20,7 @@ impl Default for Buffer2in9 {
#[cfg(test)]
mod tests {
use super::*;
use graphics::Display;
use crate::graphics::Display;
// test buffer length
#[test]
+6 -6
View File
@@ -39,24 +39,24 @@ pub const WIDTH: u32 = 128;
pub const HEIGHT: u32 = 296;
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::*;
use crate::traits::*;
use interface::DisplayInterface;
use crate::interface::DisplayInterface;
mod graphics;
pub use epd2in9::graphics::Buffer2in9;
pub use crate::epd2in9::graphics::Buffer2in9;
/// EPD2in9 driver
///