Skip to content

Commit b67dbd6

Browse files
committed
Fix clippy: Use .unwrap_or() instead of .unwrap_or_else()
Signed-off-by: Matthias Beyer <[email protected]>
1 parent 764cef2 commit b67dbd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/session.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ pub fn spawn_bash(timeout: Option<u64>) -> Result<PtyReplSession> {
411411
rcfile
412412
.path()
413413
.to_str()
414-
.unwrap_or_else(|| "temp file does not exist"),
414+
.unwrap_or("temp file does not exist"),
415415
]);
416416
spawn_command(c, timeout).and_then(|p| {
417417
let new_prompt = "[REXPECT_PROMPT>";

0 commit comments

Comments
 (0)