From 6003ffc83c84d1f24e1532f982df34cde15adb05 Mon Sep 17 00:00:00 2001 From: Eric Mark Martin Date: Tue, 26 Feb 2019 02:47:14 -0800 Subject: [PATCH] style: make clippy compliant --- src/steps/os/unix.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/steps/os/unix.rs b/src/steps/os/unix.rs index 6cf6eba2..8afaca29 100644 --- a/src/steps/os/unix.rs +++ b/src/steps/os/unix.rs @@ -22,7 +22,7 @@ fn get_zshrc(base_dirs: &BaseDirs) -> Result { Err(_) => Err(()), }; zshrc - .unwrap_or(base_dirs.home_dir().join(".zshrc")) + .unwrap_or_else(|_| base_dirs.home_dir().join(".zshrc")) .to_str() .map(|s| s.to_owned()) .ok_or(())