diff options
author | a-kenji <aks.kenji@protonmail.com> | 2021-06-29 23:02:51 +0200 |
---|---|---|
committer | a-kenji <aks.kenji@protonmail.com> | 2021-06-29 23:02:51 +0200 |
commit | b3b9175081d6e7df02872bff8d530623b8c046f9 (patch) | |
tree | e4de583f6a1eaaf8d00a88727a3c0e1b55993c9e /zellij-client/src | |
parent | 3313634fe969a69925a5d32445ba14a5f79e5d87 (diff) |
chore(clippy): needless_borrow
Diffstat (limited to 'zellij-client/src')
-rw-r--r-- | zellij-client/src/input_handler.rs | 2 | ||||
-rw-r--r-- | zellij-client/src/lib.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/zellij-client/src/input_handler.rs b/zellij-client/src/input_handler.rs index 65181e512..469249514 100644 --- a/zellij-client/src/input_handler.rs +++ b/zellij-client/src/input_handler.rs @@ -109,7 +109,7 @@ impl InputHandler { self.dispatch_action(action); } } else { - for action in Keybinds::key_to_actions(&key, raw_bytes, &self.mode, keybinds) { + for action in Keybinds::key_to_actions(key, raw_bytes, &self.mode, keybinds) { let should_exit = self.dispatch_action(action); if should_exit { self.should_exit = true; diff --git a/zellij-client/src/lib.rs b/zellij-client/src/lib.rs index 975100565..5b409e750 100644 --- a/zellij-client/src/lib.rs +++ b/zellij-client/src/lib.rs @@ -278,7 +278,7 @@ pub fn start_client( ClientInstruction::Render(output) => { let mut stdout = os_input.get_stdout_writer(); stdout - .write_all(&output.as_bytes()) + .write_all(output.as_bytes()) .expect("cannot write to stdout"); stdout.flush().expect("could not flush"); } |