Use the fixed embedded graphics lib once more
parent
17abcc74b0
commit
08457e503d
|
|
@ -29,8 +29,8 @@ epd4in2_fast_update = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
||||||
#embedded-graphics = "0.4.1"
|
embedded-graphics = "0.4.2"
|
||||||
embedded-graphics = {git = "https://github.com/caemor/embedded-graphics", branch = "patch-1"}
|
#embedded-graphics = {git = "https://github.com/caemor/embedded-graphics", branch = "patch-1"}
|
||||||
|
|
||||||
|
|
||||||
[dependencies.embedded-hal]
|
[dependencies.embedded-hal]
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ eink_waveshare_rs = { path = "../../", default-features = false, features = ["ep
|
||||||
|
|
||||||
linux-embedded-hal = "0.2.0"
|
linux-embedded-hal = "0.2.0"
|
||||||
|
|
||||||
#embedded-graphics = "0.4.1"
|
embedded-graphics = "0.4.2"
|
||||||
embedded-graphics = {git = "https://github.com/caemor/embedded-graphics", branch = "patch-1"}
|
#embedded-graphics = {git = "https://github.com/caemor/embedded-graphics", branch = "patch-1"}
|
||||||
|
|
||||||
embedded-hal = { version = "0.2.1", features = ["unproven"] }
|
embedded-hal = { version = "0.2.1", features = ["unproven"] }
|
||||||
|
|
|
||||||
|
|
@ -110,6 +110,7 @@ mod tests {
|
||||||
#[test]
|
#[test]
|
||||||
fn from_u8_panic() {
|
fn from_u8_panic() {
|
||||||
for val in 2..=u8::max_value() {
|
for val in 2..=u8::max_value() {
|
||||||
|
extern crate std;
|
||||||
let result = std::panic::catch_unwind(|| Color::from(val));
|
let result = std::panic::catch_unwind(|| Color::from(val));
|
||||||
assert!(result.is_err());
|
assert!(result.is_err());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue