mirror of
https://github.com/aiclientproxy/proxycast.git
synced 2026-09-24 23:10:56 +08:00
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:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user