mirror of
https://github.com/codewhale-hq/Codewhale.git
synced 2026-11-08 01:48:20 -10:00
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:
1 parent
39c446a164
commit
c8e68b9afb
1 file changed
+4
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user