From 56e85f87d6c365816cca71c496aa7e49709e0b11 Mon Sep 17 00:00:00 2001 From: Marcin Puc <5671049+tranzystorek-io@users.noreply.github.com> Date: Tue, 7 Dec 2021 11:24:42 +0100 Subject: fix(style): various internal refactorings --- zellij-client/src/lib.rs | 4 ++-- zellij-client/src/stdin_handler.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'zellij-client') 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 } -- cgit v1.2.3