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
I am trying to build from source on Ubuntu 22.04 but encountered this error while building the source code:
error[E0716]: temporary value dropped while borrowed
--> apis/rust/node/src/event_stream/scheduler.rs:51:19
|
41 | let event_id = match &event {
| -------- borrow later stored here
...
51 | _ => &DataId::from(NON_INPUT_EVENT.to_string()),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-
| | |
| | temporary value is freed at the end of this statement
| creates a temporary value which is freed while still in use
|
help: consider using a `let` binding to create a longer lived value
|
41 ~ let binding = DataId::from(NON_INPUT_EVENT.to_string());
42 ~ let event_id = match &event {
43 | EventItem::NodeEvent {
...
51 | } => id,
52 ~ _ => &binding,
|
For more information about this error, try `rustc --explain E0716`.
error: could not compile `dora-node-api` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...
I am trying to build from source on Ubuntu 22.04 but encountered this error while building the source code:
The whole building log is:
The text was updated successfully, but these errors were encountered: