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

Fix esp32s3_usb_otg and anyhow calls #88

Merged
merged 1 commit into from
May 15, 2022

Conversation

mihai-dinculescu
Copy link
Contributor

@mihai-dinculescu mihai-dinculescu commented May 14, 2022

  • Replace all instance of anyhow::message with anyhow::anyhow!
  • Fix the esp32s3_usb_otg build
$ 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>`

@ivmarkov ivmarkov merged commit fba0aa3 into ivmarkov:main May 15, 2022
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 this pull request may close these issues.

3 participants