style(config): mark unreachable DeepSeek match arms (review #1740)
Address gemini-code-assist review on PR #1740 (MEDIUM, clarity): the non-DeepSeek else-branch match listed ApiProvider::Deepseek / DeepseekCN arms that are logically unreachable (handled by the if branch above). Collapse to a single 'Deepseek | DeepseekCN => unreachable!(...)' arm so the intent is explicit for future maintainers. No behavior change. Refs #1714.
This commit is contained in:
committed by
Hunter Bown
parent
b156d7da33
commit
3adc05d627
@@ -2392,8 +2392,7 @@ fn apply_env_overrides(config: &mut Config) {
|
||||
.providers
|
||||
.get_or_insert_with(ProvidersConfig::default);
|
||||
let entry = match provider {
|
||||
ApiProvider::Deepseek => &mut providers.deepseek,
|
||||
ApiProvider::DeepseekCN => &mut providers.deepseek_cn,
|
||||
ApiProvider::Deepseek | ApiProvider::DeepseekCN => unreachable!("DeepSeek providers are handled in the if branch above (issue #1714)"),
|
||||
ApiProvider::NvidiaNim => &mut providers.nvidia_nim,
|
||||
ApiProvider::Openai => &mut providers.openai,
|
||||
ApiProvider::Atlascloud => &mut providers.atlascloud,
|
||||
|
||||
Reference in New Issue
Block a user