style: apply code formatting across backend and frontend (#252)

Apply cargo fmt and prettier formatting to improve code readability.
No functional changes.

Changes:
- Rust: multi-line assertion formatting (gemini_config, env_checker)
- Rust: simplify chained method calls (provider)
- TypeScript: add trailing commas to function parameters (codexProviderPresets)
This commit is contained in:
YoVinchen
2025-11-19 11:26:31 +08:00
committed by GitHub
parent 93fa5fe29a
commit c88afa365f
4 changed files with 22 additions and 16 deletions

View File

@@ -863,10 +863,7 @@ impl ProviderService {
let env_map = read_gemini_env()?;
let env_json = env_to_json(&env_map);
let env_obj = env_json
.get("env")
.cloned()
.unwrap_or_else(|| json!({}));
let env_obj = env_json.get("env").cloned().unwrap_or_else(|| json!({}));
// 读取 settings.json 文件MCP 配置等)
let settings_path = get_gemini_settings_path();
@@ -951,10 +948,7 @@ impl ProviderService {
let env_map = read_gemini_env()?;
let env_json = env_to_json(&env_map);
let env_obj = env_json
.get("env")
.cloned()
.unwrap_or_else(|| json!({}));
let env_obj = env_json.get("env").cloned().unwrap_or_else(|| json!({}));
// 读取 settings.json 文件MCP 配置等)
let settings_path = get_gemini_settings_path();