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) <noreply@anthropic.com>
This commit is contained in:
Bryan Helmkamp 2026-04-12 16:39:38 -04:00
parent 01f9921051
commit 9f881b2f28
No known key found for this signature in database

View file

@ -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?;