From cb8d423945fdc68c2ca9c12ad364bb0a79415ef3 Mon Sep 17 00:00:00 2001 From: dino Date: Tue, 9 Dec 2025 11:37:43 +0000 Subject: [PATCH] refactor(git_panel): use background_spawn --- crates/git_ui/src/git_panel.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rs index 928577addd..767eeb1a0d 100644 --- a/crates/git_ui/src/git_panel.rs +++ b/crates/git_ui/src/git_panel.rs @@ -2959,12 +2959,8 @@ impl GitPanel { cx, ); - // TODO!: Why can't I use `cx.background_spawn` here? return cx - .background_executor() - .spawn(async move { - result.await.ok(); - }) + .background_spawn(async move { result.await.ok() }) .detach(); }