From a6b6c199b404ff3aec641554f221e524e7824a87 Mon Sep 17 00:00:00 2001 From: Jason Date: Tue, 4 Nov 2025 15:54:45 +0800 Subject: [PATCH] refactor(commands): remove unused missing_param helper function Remove dead code that was flagged by Rust compiler. Error handling is now unified through the AppError enum. --- src-tauri/src/commands/provider.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src-tauri/src/commands/provider.rs b/src-tauri/src/commands/provider.rs index e158792..fb6f5b1 100644 --- a/src-tauri/src/commands/provider.rs +++ b/src-tauri/src/commands/provider.rs @@ -6,11 +6,6 @@ use crate::error::AppError; use crate::provider::Provider; use crate::services::{EndpointLatency, ProviderService, ProviderSortUpdate, SpeedtestService}; use crate::store::AppState; - -fn missing_param(param: &str) -> String { - format!("缺少 {} 参数 (Missing {} parameter)", param, param) -} - use std::str::FromStr; /// 获取所有供应商