fix(clippy): allow the cfg-dependent return in refresh_unverified_local_context

c21e0b1e14 ends refresh_unverified_local_context with a block gated on
not(any(test, all(feature = "test-thread-scoped-state", debug_assertions))).
Under CI's Lint command (clippy --workspace --all-targets --all-features)
that block is compiled out, the second early return becomes the function
tail, and clippy::needless_return fails the gate on main. The return is
needed in every other build, so the lint is allowed only under the cfg
that removes the block.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
CodeWhale BotandClaude Opus 5.5 committed 2026-10-28 03:18:40 +00:00
1 parent 39c446a164
commit c8e68b9afb
1 file changed
+4
+4
View File
@@ -1994,6 +1994,10 @@ pub(crate) async fn refresh_local_ollama_catalog(config: &Config, identity: &Pro
}
}
#[cfg_attr(
any(test, all(feature = "test-thread-scoped-state", debug_assertions)),
allow(clippy::needless_return)
)]
pub(crate) async fn refresh_unverified_local_context(
config: &Config,
identity: &ProviderIdentity,