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

Fix esp32s3_usb_otg and anyhow calls #88

Closed mihai-dinculescu closed 2 years ago

mihai-dinculescu commented 2 years ago
$ cargo build --features esp32s3_usb_otg
...
error[E0425]: cannot find function `message` in crate `anyhow`
    --> src\main.rs:1065:30
     |
1065 |         .map_err(|e| anyhow::message("Display error: {:?}", e))?;
     |                              ^^^^^^^ not found in `anyhow`

error[E0425]: cannot find function `message` in crate `anyhow`
error[E0277]: the trait bound `st7789::Error<EspError>: std::error::Error` is not satisfied
    --> src\main.rs:1070:30
     |
1070 |     Ok(led_draw(&mut display)?)
     |                              ^ the trait `std::error::Error` is not implemented for `st7789::Error<EspError>`
     |
     = note: required because of the requirements on the impl of `From<st7789::Error<EspError>>` for `anyhow::Error`
     = note: required because of the requirements on the impl of `FromResidual<std::result::Result<Infallible, st7789::Error<EspError>>>` for `std::result::Result<(), anyhow::Error>`