From 9646a41788907f9554698a3bdedff3818ed6df09 Mon Sep 17 00:00:00 2001 From: zhom <2717306+zhom@users.noreply.github.com> Date: Fri, 8 Aug 2025 14:57:14 +0400 Subject: [PATCH] chore: linting --- src-tauri/src/app_auto_updater.rs | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/src-tauri/src/app_auto_updater.rs b/src-tauri/src/app_auto_updater.rs index 25a9219..67c11b5 100644 --- a/src-tauri/src/app_auto_updater.rs +++ b/src-tauri/src/app_auto_updater.rs @@ -319,12 +319,12 @@ impl AppAutoUpdater { #[cfg(target_os = "windows")] { - self.get_windows_download_url(assets, arch); + self.get_windows_download_url(assets, arch) } #[cfg(target_os = "linux")] { - self.get_linux_download_url(assets, arch); + self.get_linux_download_url(assets, arch) } #[cfg(not(any(target_os = "macos", target_os = "windows", target_os = "linux")))] @@ -1792,23 +1792,6 @@ mod tests { ); } } - - #[cfg(target_os = "linux")] - #[test] - fn test_linux_installation_method_detection() { - let updater = AppAutoUpdater::instance(); - - // This test can only verify the method doesn't panic - // The actual detection depends on the runtime environment - let method = updater.detect_linux_installation_method(); - - // Should return one of the known methods - let valid_methods = ["appimage", "deb", "rpm", "system", "manual", "unknown"]; - assert!( - valid_methods.contains(&method.as_str()), - "Invalid installation method detected: {method}" - ); - } } // Global singleton instance