From 2d02cfa9e88f389dd331c2cfcb69dc15c98d0b97 Mon Sep 17 00:00:00 2001 From: Shaun Arman Date: Sun, 5 Apr 2026 19:41:59 -0500 Subject: [PATCH] style: apply cargo fmt to install_ollama_from_bundle --- src-tauri/src/commands/system.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src-tauri/src/commands/system.rs b/src-tauri/src/commands/system.rs index 0a257afa..404955e3 100644 --- a/src-tauri/src/commands/system.rs +++ b/src-tauri/src/commands/system.rs @@ -148,9 +148,7 @@ pub async fn get_audit_log( // On Unix, writing to /usr/local/bin requires elevated privileges. If the operation fails with // PermissionDenied the caller receives an actionable error message. #[tauri::command] -pub async fn install_ollama_from_bundle( - app: tauri::AppHandle, -) -> Result { +pub async fn install_ollama_from_bundle(app: tauri::AppHandle) -> Result { use std::fs; use std::path::PathBuf; use tauri::Manager; @@ -160,9 +158,11 @@ pub async fn install_ollama_from_bundle( .resource_dir() .map_err(|e: tauri::Error| e.to_string())?; - let resource_path = resource_dir - .join("ollama") - .join(if cfg!(windows) { "ollama.exe" } else { "ollama" }); + let resource_path = resource_dir.join("ollama").join(if cfg!(windows) { + "ollama.exe" + } else { + "ollama" + }); if !resource_path.exists() { return Err("Bundled Ollama not found in resources".to_string());