We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72f789c commit 7f23782Copy full SHA for 7f23782
src/shell/execute.rs
@@ -909,7 +909,7 @@ fn evaluate_word_parts(
909
WordPart::Tilde => Some(
910
sys_traits::impls::real_home_dir_with_env(state)
911
.map(|s| s.into_os_string())
912
- .ok_or_else(|| EvaluateWordTextError::NoHomeDirectory)?,
+ .ok_or(EvaluateWordTextError::NoHomeDirectory)?,
913
),
914
WordPart::Command(list) => Some(
915
evaluate_command_substitution(
0 commit comments