ivmarkov / rust-esp32-std-demo

Rust on ESP32 STD demo app. A demo STD binary crate for the ESP32[XX] and ESP-IDF, which connects to WiFi, Ethernet, drives a small HTTP server and draws on a LED screen.
Apache License 2.0
784 stars 105 forks source link

Compiling Kaluga fails with "the trait `std::error::Error` is not implemented for `ili9341::DisplayError`" #92

Closed jhaand closed 2 years ago

jhaand commented 2 years ago

Steps to reproduce Checkout code and configure for ESP32S2. cargo build --features kaluga

Expected: Code compiles successfully

Observed:

error[E0277]: the trait bound `ili9341::DisplayError: std::error::Error` is not satisfied
   --> src/main.rs:860:10
    |
860 |         )?;
    |          ^ the trait `std::error::Error` is not implemented for `ili9341::DisplayError`
    |
    = note: required because of the requirements on the impl of `From<ili9341::DisplayError>` for `anyhow::Error`
    = note: required because of the requirements on the impl of `FromResidual<std::result::Result<Infallible, ili9341::DisplayError>>` for `std::result::Result<(), anyhow::Error>`

For more information about this error, try `rustc --explain E0277`.

Workaround: Replace on line 860 the )?; with ).unwrap();

Code: commit 9b4da900a4ed5a3c2af8eb6bfd3817b6a3c12ea4 from 2022-05-23.