Resolves clippy errors (#128)

This commit is contained in:
Thomas Schönauer
2022-11-03 18:29:22 +00:00
committed by GitHub
parent 9233846479
commit 8731fd2b3f
2 changed files with 2 additions and 2 deletions

View File

@@ -245,7 +245,7 @@ impl Aura {
impl ArchPackageManager for Aura {
fn upgrade(&self, ctx: &ExecutionContext) -> Result<()> {
let sudo = which("sudo").unwrap_or(PathBuf::new());
let sudo = which("sudo").unwrap_or_else(PathBuf::new);
let mut aur_update = ctx.run_type().execute(&sudo);
if sudo.ends_with("sudo") {