🧹 make clippy happy

This commit is contained in:
Vladislav Nepogodin 2023-07-10 03:00:44 +04:00
parent 878e7953d9
commit a40d87f9d1
No known key found for this signature in database
GPG Key ID: B62C3D10C54D5DA9
2 changed files with 2 additions and 2 deletions

View File

@ -119,6 +119,6 @@ impl AlpmHelper {
let pacman =
pacmanconf::Config::with_opts(None, Some("/etc/pacman.conf"), Some("/")).unwrap();
let alpm = alpm_utils::alpm_with_conf(&pacman).unwrap();
matches!(alpm.localdb().pkg(pkg_name.as_bytes()), Ok(_))
alpm.localdb().pkg(pkg_name.as_bytes()).is_ok()
}
}

View File

@ -134,7 +134,7 @@ pub fn get_pacman_wrapper() -> PacmanWrapper {
pub fn is_alpm_pkg_installed(package_name: &str) -> bool {
let pacman = pacmanconf::Config::with_opts(None, Some("/etc/pacman.conf"), Some("/")).unwrap();
let alpm = alpm_utils::alpm_with_conf(&pacman).unwrap();
matches!(alpm.localdb().pkg(package_name.as_bytes()), Ok(_))
alpm.localdb().pkg(package_name.as_bytes()).is_ok()
}
#[cfg(test)]