You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 1, 2024. It is now read-only.
Hey, does anyone have an idea why this is happening?
$ cargo build
warning: unused config key `unstable.configurable-env` in `/Users/kofi/kofi/rust-esp32-std-hello/.cargo/config.toml`
Compiling esp-idf-sys v0.13.0 (https://github.com/ivmarkov/esp-idf-sys.git#02cccaed)
error[E0308]: mismatched types
--> /Users/kofi/.cargo/git/checkouts/esp-idf-sys-f28bf5c6d31e9e33/02cccae/src/alloc.rs:28:59
|
28 | heap_caps_realloc(ptr as *mut _, new_size as u32, MALLOC_CAP_8BIT as i32) as *mut _
| ^^^^^^^^^^^^^^^^^^^^^^ expected `u32`, found `i32`
|
help: you can convert an `i32` to a `u32` and panic if the converted value doesn't fit
|
28 | heap_caps_realloc(ptr as *mut _, new_size as u32, (MALLOC_CAP_8BIT as i32).try_into().unwrap()) as *mut _
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.
error: could not compile `esp-idf-sys`
To learn more, run the command again with --verbose.