Skip to content

Commit

Permalink
Fix clippy: Use .unwrap_or() instead of .unwrap_or_else()
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
  • Loading branch information
matthiasbeyer committed Sep 12, 2022
1 parent 764cef2 commit b67dbd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ pub fn spawn_bash(timeout: Option<u64>) -> Result<PtyReplSession> {
rcfile
.path()
.to_str()
.unwrap_or_else(|| "temp file does not exist"),
.unwrap_or("temp file does not exist"),
]);
spawn_command(c, timeout).and_then(|p| {
let new_prompt = "[REXPECT_PROMPT>";
Expand Down

0 comments on commit b67dbd6

Please # to comment.