partial fix #36
This workflow graph cannot be shown
A graph will be generated the next time this workflow is run.
Annotations
3 errors
Invalid workflow file:
.github/workflows/build.yml#L31
You have an error in your yaml syntax on line 31
|
cannot move out of `startup_event`, a captured variable in an `FnMut` closure:
src/events_source.rs#L169
error[E0507]: cannot move out of `startup_event`, a captured variable in an `FnMut` closure
--> src/events_source.rs:169:62
|
168 | let startup_event = self.get_startup_event().clone();
| ------------- captured outer variable
169 | stream::unfold(recv_channel, move |mut recv_channel| async move {
| ______________________________________-----------------------_^
| | |
| | captured by this `FnMut` closure
170 | | let event_res = if starup_event_initialized {
171 | | recv_channel.recv().await.ok()
172 | | } else {
173 | | starup_event_initialized = true;
174 | | Some(Arc::new(startup_event.clone()))
| | -------------
| | |
| | variable moved due to use in coroutine
| | move occurs because `startup_event` has type `events_source::BuilderEvent<Types>`, which does not implement the `Copy` trait
175 | | };
176 | | event_res.map(|event| (event, recv_channel))
177 | | })
| |_________^ `startup_event` is moved here
|
value assigned to `starup_event_initialized` is never read:
src/events_source.rs#L173
error: value assigned to `starup_event_initialized` is never read
--> src/events_source.rs:173:17
|
173 | starup_event_initialized = true;
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: maybe it is overwritten before being read?
= note: `-D unused-assignments` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_assignments)]`
|