From 62faa05967e4a0f4a115834de1d79118be2b4d66 Mon Sep 17 00:00:00 2001 From: Musa Malik Date: Mon, 20 Apr 2026 23:57:26 +0000 Subject: [PATCH] fix(fmt): fix cargo fmt line length issues in provider id tests Co-Authored-By: Claude Sonnet 4.6 --- crates/hermesllm/src/providers/id.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/crates/hermesllm/src/providers/id.rs b/crates/hermesllm/src/providers/id.rs index 8a47b8c5..89eb59e9 100644 --- a/crates/hermesllm/src/providers/id.rs +++ b/crates/hermesllm/src/providers/id.rs @@ -375,14 +375,16 @@ mod tests { fn test_vercel_compatible_api() { use crate::clients::endpoints::{SupportedAPIsFromClient, SupportedUpstreamAPIs}; - let openai_client = SupportedAPIsFromClient::OpenAIChatCompletions(OpenAIApi::ChatCompletions); + let openai_client = + SupportedAPIsFromClient::OpenAIChatCompletions(OpenAIApi::ChatCompletions); let upstream = ProviderId::Vercel.compatible_api_for_client(&openai_client, false); assert!( matches!(upstream, SupportedUpstreamAPIs::OpenAIChatCompletions(_)), "Vercel should map OpenAI client to OpenAIChatCompletions upstream" ); - let anthropic_client = SupportedAPIsFromClient::AnthropicMessagesAPI(AnthropicApi::Messages); + let anthropic_client = + SupportedAPIsFromClient::AnthropicMessagesAPI(AnthropicApi::Messages); let upstream = ProviderId::Vercel.compatible_api_for_client(&anthropic_client, false); assert!( matches!(upstream, SupportedUpstreamAPIs::AnthropicMessagesAPI(_)), @@ -401,14 +403,16 @@ mod tests { fn test_openrouter_compatible_api() { use crate::clients::endpoints::{SupportedAPIsFromClient, SupportedUpstreamAPIs}; - let openai_client = SupportedAPIsFromClient::OpenAIChatCompletions(OpenAIApi::ChatCompletions); + let openai_client = + SupportedAPIsFromClient::OpenAIChatCompletions(OpenAIApi::ChatCompletions); let upstream = ProviderId::OpenRouter.compatible_api_for_client(&openai_client, false); assert!( matches!(upstream, SupportedUpstreamAPIs::OpenAIChatCompletions(_)), "OpenRouter should map OpenAI client to OpenAIChatCompletions upstream" ); - let anthropic_client = SupportedAPIsFromClient::AnthropicMessagesAPI(AnthropicApi::Messages); + let anthropic_client = + SupportedAPIsFromClient::AnthropicMessagesAPI(AnthropicApi::Messages); let upstream = ProviderId::OpenRouter.compatible_api_for_client(&anthropic_client, false); assert!( matches!(upstream, SupportedUpstreamAPIs::OpenAIChatCompletions(_)),