summaryrefslogtreecommitdiffstats
path: root/zellij-client
diff options
context:
space:
mode:
Diffstat (limited to 'zellij-client')
-rw-r--r--zellij-client/src/lib.rs4
-rw-r--r--zellij-client/src/stdin_handler.rs6
2 files changed, 5 insertions, 5 deletions
diff --git a/zellij-client/src/lib.rs b/zellij-client/src/lib.rs
index f3daf69c8..38ab30210 100644
--- a/zellij-client/src/lib.rs
+++ b/zellij-client/src/lib.rs
@@ -299,9 +299,9 @@ pub fn start_client(
os_input.send_to_server(ClientToServerMsg::ClientExited);
if let ExitReason::Error(_) = reason {
- handle_error(format!("{}", reason));
+ handle_error(reason.to_string());
}
- exit_msg = format!("{}", reason);
+ exit_msg = reason.to_string();
break;
}
ClientInstruction::Error(backtrace) => {
diff --git a/zellij-client/src/stdin_handler.rs b/zellij-client/src/stdin_handler.rs
index 177f08e18..7d93ac4dd 100644
--- a/zellij-client/src/stdin_handler.rs
+++ b/zellij-client/src/stdin_handler.rs
@@ -66,14 +66,14 @@ pub(crate) fn stdin_loop(
&& stdin_buffer
.iter()
.take(bracketed_paste_start.len())
- .eq(bracketed_paste_start.iter()))
+ .eq(&bracketed_paste_start))
{
match bracketed_paste_end_position(&stdin_buffer) {
Some(paste_end_position) => {
let starts_with_bracketed_paste_start = stdin_buffer
.iter()
.take(bracketed_paste_start.len())
- .eq(bracketed_paste_start.iter());
+ .eq(&bracketed_paste_start);
let ends_with_bracketed_paste_end = true;
@@ -97,7 +97,7 @@ pub(crate) fn stdin_loop(
let starts_with_bracketed_paste_start = stdin_buffer
.iter()
.take(bracketed_paste_start.len())
- .eq(bracketed_paste_start.iter());
+ .eq(&bracketed_paste_start);
if starts_with_bracketed_paste_start {
drop(stdin_buffer.drain(..6)); // bracketed paste start
}