From 1905765821c783f12f4984dd6ec8a7d4c12f9b8d Mon Sep 17 00:00:00 2001 From: YoVinchen Date: Thu, 12 Feb 2026 01:23:24 +0800 Subject: [PATCH] fix: resolve omo clippy warnings and include app update --- src-tauri/src/services/omo.rs | 9 ++++++--- src/App.tsx | 6 +++++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src-tauri/src/services/omo.rs b/src-tauri/src/services/omo.rs index 0f2038e4..2e9cf490 100644 --- a/src-tauri/src/services/omo.rs +++ b/src-tauri/src/services/omo.rs @@ -301,7 +301,7 @@ impl OmoService { let agents = obj.get("agents").cloned(); let categories = obj.get("categories").cloned(); - let other = Self::extract_other_fields(&obj); + let other = Self::extract_other_fields(obj); let other_fields = if other.is_empty() { None } else { @@ -309,7 +309,7 @@ impl OmoService { }; let mut global = OmoGlobalConfig::default(); - Self::merge_global_from_obj(&obj, &mut global); + Self::merge_global_from_obj(obj, &mut global); global.other_fields = other_fields.clone(); OmoLocalFileData { @@ -471,7 +471,10 @@ mod tests { None, ); - assert_eq!(data.global.schema_url.as_deref(), Some("https://example.com/schema.json")); + assert_eq!( + data.global.schema_url.as_deref(), + Some("https://example.com/schema.json") + ); assert_eq!(data.global.disabled_agents, vec!["oracle".to_string()]); assert_eq!( diff --git a/src/App.tsx b/src/App.tsx index 9f758f8b..4f0d4778 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -141,7 +141,11 @@ function App() { // Fallback from sessions view when switching to an app without session support useEffect(() => { - if (currentView === "sessions" && activeApp !== "claude" && activeApp !== "codex") { + if ( + currentView === "sessions" && + activeApp !== "claude" && + activeApp !== "codex" + ) { setCurrentView("providers"); } }, [activeApp, currentView]);