fix: restore let-chains and add rust-version = 1.87 to Cargo.toml
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:
@@ -2,6 +2,7 @@
|
||||
name = "llm-proxy"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
rust-version = "1.87"
|
||||
description = "Unified LLM proxy gateway supporting OpenAI, Gemini, DeepSeek, and Grok with token tracking and cost calculation"
|
||||
authors = ["newkirk"]
|
||||
license = "MIT OR Apache-2.0"
|
||||
|
||||
@@ -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) {
|
||||
// Parse and handle WebSocket messages
|
||||
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!({
|
||||
"type": "pong",
|
||||
|
||||
Reference in New Issue
Block a user