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
Cross-post from #318, because I don't really know where I should ask this question.
I'm working on a project that is based on esp-idf-template and when I'm trying to include esp-idf-hal in my Cargo.toml compilation fails with the following error:
error[E0530]: function parameters cannot shadow statics
--> /Users/wouter.de.bie/.cargo/registry/src/github.com-1ecc6299db9ec823/esp-idf-hal-0.40.1/src/adc.rs:88:17
|
58 | use esp_idf_sys::*;
| -------------- the static `resolution` is imported here
...
88 | fn from(resolution: Resolution) -> Self {
| ^^^^^^^^^^ cannot be named the same as a static
error[E0530]: function parameters cannot shadow statics
--> /Users/wouter.de.bie/.cargo/registry/src/github.com-1ecc6299db9ec823/esp-idf-hal-0.40.1/src/adc.rs:117:37
|
58 | use esp_idf_sys::*;
| -------------- the static `resolution` is imported here
...
117 | pub fn resolution(mut self, resolution: Resolution) -> Self {
| ^^^^^^^^^^ cannot be named the same as a static
error[E0530]: function parameters cannot shadow statics
--> /Users/wouter.de.bie/.cargo/registry/src/github.com-1ecc6299db9ec823/esp-idf-hal-0.40.1/src/can.rs:76:17
|
52 | use esp_idf_sys::*;
| -------------- the static `resolution` is imported here
...
76 | fn from(resolution: Timing) -> Self {
| ^^^^^^^^^^ cannot be named the same as a static
For more information about this error, try `rustc --explain E0530`.
error: could not compile `esp-idf-hal` due to 3 previous errors
I'm compiling on MacOS with ESP IDF v5.0.
Any idea what is wrong?
The text was updated successfully, but these errors were encountered:
Cross-post from #318, because I don't really know where I should ask this question.
I'm working on a project that is based on esp-idf-template and when I'm trying to include esp-idf-hal in my Cargo.toml compilation fails with the following error:
I'm compiling on MacOS with ESP IDF v5.0.
Any idea what is wrong?
The text was updated successfully, but these errors were encountered: