style: format Rust code with cargo fmt

This commit is contained in:
Jason
2026-03-08 22:27:53 +08:00
parent 032a8203fd
commit 9092e97bc2
5 changed files with 47 additions and 27 deletions
+3 -1
View File
@@ -260,7 +260,9 @@ pub async fn set_common_config_snippet(
};
if matches!(app_type.as_str(), "claude" | "codex" | "gemini") {
if let Some(legacy_snippet) = old_snippet.as_deref().filter(|value| !value.trim().is_empty())
if let Some(legacy_snippet) = old_snippet
.as_deref()
.filter(|value| !value.trim().is_empty())
{
let app = AppType::from_str(&app_type).map_err(|e| e.to_string())?;
crate::services::provider::ProviderService::migrate_legacy_common_config_usage(