From 9f881b2f28ab5bc5c5f45bce4d69c1f5a4dca4da Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Sun, 12 Apr 2026 16:39:38 -0400 Subject: [PATCH] Box::pin run_doctor and run_install to fix clippy large_futures The storage dir check additions increased the run_doctor future size, pushing the overall CLI dispatch future past the large_futures threshold. Box::pin both run_doctor and run_install (which was already marginal). Co-Authored-By: Claude Opus 4.6 (1M context) --- lib/crates/fabro-cli/src/main.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/crates/fabro-cli/src/main.rs b/lib/crates/fabro-cli/src/main.rs index 768ba0ce4..3021038e1 100644 --- a/lib/crates/fabro-cli/src/main.rs +++ b/lib/crates/fabro-cli/src/main.rs @@ -223,8 +223,10 @@ async fn main_inner() -> (String, Result<()>) { .output .verbosity == OutputVerbosity::Verbose; - let exit_code = - commands::doctor::run_doctor(&args, verbose, &globals, printer).await?; + let exit_code = Box::pin(commands::doctor::run_doctor( + &args, verbose, &globals, printer, + )) + .await?; std::process::exit(exit_code); } Commands::Discord => { @@ -247,7 +249,7 @@ async fn main_inner() -> (String, Result<()>) { } Commands::Repo(ns) => commands::repo::dispatch(ns, &globals, printer).await?, Commands::Install(args) => { - commands::install::run_install(&args, &globals, printer).await?; + Box::pin(commands::install::run_install(&args, &globals, printer)).await?; } Commands::Uninstall(args) => { commands::uninstall::run_uninstall(&args, &globals, printer).await?;