From 7926e94f837af599d4c0dcaeade5854f6d7fddab Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Mon, 15 Jul 2019 11:09:13 +0300 Subject: [PATCH] Make clippy happy --- src/steps/os/linux.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/steps/os/linux.rs b/src/steps/os/linux.rs index 6ac50b70..4e5f4ee6 100644 --- a/src/steps/os/linux.rs +++ b/src/steps/os/linux.rs @@ -107,7 +107,7 @@ pub fn show_pacnew() { } fn upgrade_arch_linux(sudo: &Option, cleanup: bool, run_type: RunType) -> Result<(), Error> { - let pacman = which("powerpill").unwrap_or(PathBuf::from("/usr/bin/pacman")); + let pacman = which("powerpill").unwrap_or_else(|| PathBuf::from("/usr/bin/pacman")); if let Some(yay) = which("yay") { if let Some(python) = which("python") {