diff --git a/src-tauri/src/downloaded_browsers.rs b/src-tauri/src/downloaded_browsers.rs index 5a9c627..2e3b67b 100644 --- a/src-tauri/src/downloaded_browsers.rs +++ b/src-tauri/src/downloaded_browsers.rs @@ -27,7 +27,7 @@ impl DownloadedBrowsersRegistry { Self::default() } - pub fn load() -> Result> { + pub fn load() -> Result> { let registry_path = Self::get_registry_path()?; if !registry_path.exists() { @@ -39,7 +39,7 @@ impl DownloadedBrowsersRegistry { Ok(registry) } - pub fn save(&self) -> Result<(), Box> { + pub fn save(&self) -> Result<(), Box> { let registry_path = Self::get_registry_path()?; // Ensure parent directory exists @@ -52,7 +52,7 @@ impl DownloadedBrowsersRegistry { Ok(()) } - fn get_registry_path() -> Result> { + fn get_registry_path() -> Result> { let base_dirs = BaseDirs::new().ok_or("Failed to get base directories")?; let mut path = base_dirs.data_local_dir().to_path_buf(); path.push(if cfg!(debug_assertions) { @@ -146,7 +146,7 @@ impl DownloadedBrowsersRegistry { &mut self, browser: &str, version: &str, - ) -> Result<(), Box> { + ) -> Result<(), Box> { if let Some(info) = self.remove_browser(browser, version) { // Clean up any files that might have been left behind if info.file_path.exists() { @@ -180,7 +180,7 @@ impl DownloadedBrowsersRegistry { pub fn cleanup_unused_binaries( &mut self, active_profiles: &[(String, String)], // (browser, version) pairs - ) -> Result, Box> { + ) -> Result, Box> { let active_set: std::collections::HashSet<(String, String)> = active_profiles.iter().cloned().collect(); let mut cleaned_up = Vec::new();