chore: linting

This commit is contained in:
zhom
2025-08-08 14:57:14 +04:00
parent f7679d25ca
commit 9646a41788
+2 -19
View File
@@ -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