Skip to content

Commit 7f23782

Browse files
committed
clippy
1 parent 72f789c commit 7f23782

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shell/execute.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ fn evaluate_word_parts(
909909
WordPart::Tilde => Some(
910910
sys_traits::impls::real_home_dir_with_env(state)
911911
.map(|s| s.into_os_string())
912-
.ok_or_else(|| EvaluateWordTextError::NoHomeDirectory)?,
912+
.ok_or(EvaluateWordTextError::NoHomeDirectory)?,
913913
),
914914
WordPart::Command(list) => Some(
915915
evaluate_command_substitution(

0 commit comments

Comments
 (0)