From 08457e503d301d5043520b23ac49024764f07f4f Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 18 Oct 2018 16:20:39 +0200 Subject: [PATCH] Use the fixed embedded graphics lib once more --- Cargo.toml | 4 ++-- examples/embedded_linux_epd4in2/Cargo.toml | 4 ++-- src/drawing.rs | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index cb92be1..ee10123 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,8 +29,8 @@ epd4in2_fast_update = [] [dependencies] -#embedded-graphics = "0.4.1" -embedded-graphics = {git = "https://github.com/caemor/embedded-graphics", branch = "patch-1"} +embedded-graphics = "0.4.2" +#embedded-graphics = {git = "https://github.com/caemor/embedded-graphics", branch = "patch-1"} [dependencies.embedded-hal] diff --git a/examples/embedded_linux_epd4in2/Cargo.toml b/examples/embedded_linux_epd4in2/Cargo.toml index 3940b13..f12dbbd 100644 --- a/examples/embedded_linux_epd4in2/Cargo.toml +++ b/examples/embedded_linux_epd4in2/Cargo.toml @@ -11,7 +11,7 @@ eink_waveshare_rs = { path = "../../", default-features = false, features = ["ep linux-embedded-hal = "0.2.0" -#embedded-graphics = "0.4.1" -embedded-graphics = {git = "https://github.com/caemor/embedded-graphics", branch = "patch-1"} +embedded-graphics = "0.4.2" +#embedded-graphics = {git = "https://github.com/caemor/embedded-graphics", branch = "patch-1"} embedded-hal = { version = "0.2.1", features = ["unproven"] } diff --git a/src/drawing.rs b/src/drawing.rs index 7747908..a610a1e 100644 --- a/src/drawing.rs +++ b/src/drawing.rs @@ -110,6 +110,7 @@ mod tests { #[test] fn from_u8_panic() { for val in 2..=u8::max_value() { + extern crate std; let result = std::panic::catch_unwind(|| Color::from(val)); assert!(result.is_err()); }