-
Notifications
You must be signed in to change notification settings - Fork 211
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug description
Using nightly rust build failed. I got this error and more like it running cargo build.
error[E0716]: temporary value dropped while borrowed
--> src/spi.rs:1023:53
|
1023 | core::pin::pin!(self.transaction_async(&mut [Operation::Read(read)])).await
| --------------------------------------------^^^^^^^^^^^^^^^^^^^^^^^--
| | | |
| | | temporary value is freed at the end of this statement
| | creates a temporary value which is freed while still in use
| borrow later used here
|
= note: consider using a `let` binding to create a longer lived value
- Would you like to work on a fix? no
To Reproduce
- git clone https://github.com/esp-rs/esp-idf-hal.git
- rustup toolchain install nightly
- rustup default nightly
- cargo build
Expected behavior
Build success.
Environment
- Crate (
esp-idf-hal) version: master 80c674e - ESP-IDF branch or tag: ?
- Target device (MCU): esp32c3
- OS: Gentoo 23.0
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Todo