mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-08 03:10:26 +00:00
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:
parent
01f9921051
commit
9f881b2f28
1 changed files with 5 additions and 3 deletions
|
|
@ -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?;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue