🧹 make clippy happy
This commit is contained in:
parent
878e7953d9
commit
a40d87f9d1
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)]
|
||||
|
|
Loading…
Reference in New Issue