(state: &State)
| 40 | } |
| 41 | |
| 42 | pub async fn root_data(state: &State) -> anyhow::Result<Vec<RootEvent>> { |
| 43 | let events = state.debug_events.lock().unwrap(); |
| 44 | root_events(&events) |
| 45 | } |
| 46 | |
| 47 | fn root_events(events: &[Arc<DebugEvent>]) -> anyhow::Result<Vec<RootEvent>> { |
| 48 | let mut output = Vec::with_capacity(events.len()); |