diff options
author | Marcin Puc <5671049+tranzystorek-io@users.noreply.github.com> | 2021-12-07 11:24:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-07 10:24:42 +0000 |
commit | 56e85f87d6c365816cca71c496aa7e49709e0b11 (patch) | |
tree | 1dbc6db878e8da9544df9445d77d1cd665b9126b /zellij-client | |
parent | d34e6240101d246f02921cbc909dcd04f648203e (diff) |
fix(style): various internal refactorings
Diffstat (limited to 'zellij-client')
-rw-r--r-- | zellij-client/src/lib.rs | 4 | ||||
-rw-r--r-- | zellij-client/src/stdin_handler.rs | 6 |
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 } |