From f2cd365c4f61e2caa286db47f06a13babddfbc74 Mon Sep 17 00:00:00 2001 From: Smit Barmase Date: Thu, 2 Apr 2026 15:28:48 +0530 Subject: [PATCH] fix editor benchmark --- crates/editor_benchmarks/src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) })?;