fix: restore variable names without underscore prefix

These variables are actually used in debug builds, so they should not have underscore prefix.
This commit is contained in:
coso
2026-03-10 09:24:51 +08:00
parent 2adf8c2bc2
commit daaa2352b6
3 changed files with 9 additions and 6 deletions
+4 -4
View File
@@ -98,13 +98,13 @@ pub fn run() {
let db_clone = db.clone();
let pool_service_clone = provider_pool_service_state.0.clone();
#[cfg(debug_assertions)]
let _api_key_provider_service_clone = api_key_provider_service_state.0.clone();
let api_key_provider_service_clone = api_key_provider_service_state.0.clone();
#[cfg(debug_assertions)]
let _connect_state_clone = connect_state.0.clone();
let connect_state_clone = connect_state.0.clone();
#[cfg(debug_assertions)]
let _model_registry_clone = model_registry_state.clone();
let model_registry_clone = model_registry_state.clone();
#[cfg(debug_assertions)]
let _skill_service_clone = skill_service_state.0.clone();
let skill_service_clone = skill_service_state.0.clone();
let token_cache_clone = token_cache_service_state.0.clone();
let shared_stats_clone = shared_stats.clone();
let shared_tokens_clone = shared_tokens.clone();
+1 -1
View File
@@ -736,7 +736,7 @@ impl WorkspaceSandboxedBashTool {
format!("'{}'", value.replace('\'', "'\"'\"'"))
}
fn build_shell_command(&self, command: &str, _context: &ToolContext) -> (String, Vec<String>) {
fn build_shell_command(&self, command: &str, context: &ToolContext) -> (String, Vec<String>) {
#[cfg(target_os = "windows")]
{
return (
@@ -1,5 +1,8 @@
use serde::Serialize;
use tauri::{AppHandle, Manager};
use tauri::AppHandle;
#[cfg(target_os = "windows")]
use tauri::Manager;
#[cfg(target_os = "windows")]
use std::path::PathBuf;