fix: restore let-chains and add rust-version = 1.87 to Cargo.toml
Some checks failed
CI / Check (push) Has been cancelled
CI / Clippy (push) Has been cancelled
CI / Formatting (push) Has been cancelled
CI / Test (push) Has been cancelled
CI / Release Build (push) Has been cancelled

Let-chains require Rust 1.87+ (stabilized May 2025). Added rust-version
field to document the MSRV so cargo warns on older toolchains.
This commit is contained in:
2026-03-02 08:31:37 -05:00
parent 2cdc49d7f2
commit 2aad813ccd
2 changed files with 2 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
name = "llm-proxy" name = "llm-proxy"
version = "0.1.0" version = "0.1.0"
edition = "2024" edition = "2024"
rust-version = "1.87"
description = "Unified LLM proxy gateway supporting OpenAI, Gemini, DeepSeek, and Grok with token tracking and cost calculation" description = "Unified LLM proxy gateway supporting OpenAI, Gemini, DeepSeek, and Grok with token tracking and cost calculation"
authors = ["newkirk"] authors = ["newkirk"]
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"

View File

@@ -65,7 +65,7 @@ pub(super) async fn handle_websocket_connection(mut socket: WebSocket, state: Da
pub(super) async fn handle_websocket_message(text: &str, state: &DashboardState) { pub(super) async fn handle_websocket_message(text: &str, state: &DashboardState) {
// Parse and handle WebSocket messages // Parse and handle WebSocket messages
if let Ok(data) = serde_json::from_str::<serde_json::Value>(text) if let Ok(data) = serde_json::from_str::<serde_json::Value>(text)
&& let Some("ping") = data.get("type").and_then(|v| v.as_str()) && data.get("type").and_then(|v| v.as_str()) == Some("ping")
{ {
let _ = state.app_state.dashboard_tx.send(serde_json::json!({ let _ = state.app_state.dashboard_tx.send(serde_json::json!({
"type": "pong", "type": "pong",