Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

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

Closed
jhaand opened this issue May 30, 2022 · 0 comments · Fixed by #93

Comments

@jhaand
Copy link

jhaand commented May 30, 2022

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 9b4da90 from 2022-05-23.

pyaillet added a commit to pyaillet/rust-esp32-std-demo that referenced this issue Jun 5, 2022
- Remove `write_only` on `spi::config::Config` for `ttgo` as it's not released yet
- Fix ivmarkov#92: Convert error to `anyhow::Error` for `kaluga` feature
ivmarkov pushed a commit that referenced this issue Jun 14, 2022
- Remove `write_only` on `spi::config::Config` for `ttgo` as it's not released yet
- Fix #92: Convert error to `anyhow::Error` for `kaluga` feature
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant