fix editor benchmark

Smit Barmase created

Change summary

crates/editor_benchmarks/src/main.rs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

Detailed changes

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<Editor>, cx: &mut AsyncWindowContext| {
+                    async move |weak: WeakEntity<Editor>,
+                                cx: &mut AsyncWindowContext|
+                                -> anyhow::Result<()> {
                         let find_task = weak.update_in(cx, |editor, window, cx| {
                             editor.find_matches(query.clone(), window, cx)
                         })?;