From 21b8c3e80786ff6479d8483c5ca70de60f3845be Mon Sep 17 00:00:00 2001 From: Arijit Basu Date: Thu, 2 Jun 2022 11:07:29 +0530 Subject: [PATCH] Make clippy happy --- src/runner.rs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/runner.rs b/src/runner.rs index c3c3a36..765d0ed 100644 --- a/src/runner.rs +++ b/src/runner.rs @@ -376,13 +376,16 @@ impl Runner { // OSC 7: Change CWD if !(*ui::NO_COLOR) { - terminal.backend_mut().write( - format!( - "\x1b]7;file://{}{}\x1b\\", - &app.hostname, &app.pwd + terminal + .backend_mut() + .write( + format!( + "\x1b]7;file://{}{}\x1b\\", + &app.hostname, &app.pwd + ) + .as_bytes(), ) - .as_bytes(), - )?; + .unwrap_or_default(); } last_pwd = app.pwd.clone();