diff --git a/crates/editor_benchmarks/src/main.rs b/crates/editor_benchmarks/src/main.rs index 1adda3088ada1c029b2fc19844d8db4a094eca72..81df55334014da22628fbfa6a2dca652526a5826 100644 --- a/crates/editor_benchmarks/src/main.rs +++ b/crates/editor_benchmarks/src/main.rs @@ -137,7 +137,9 @@ fn main() { .update(cx, move |_, window, cx| { cx.spawn_in( window, - async move |weak: WeakEntity, cx: &mut AsyncWindowContext| { + async move |weak: WeakEntity, + cx: &mut AsyncWindowContext| + -> anyhow::Result<()> { let find_task = weak.update_in(cx, |editor, window, cx| { editor.find_matches(query.clone(), window, cx) })?;