aboutsummaryrefslogtreecommitdiffstats
path: root/zellij-client
diff options
context:
space:
mode:
authorJae-Heon Ji <32578710+jaeheonji@users.noreply.github.com>2022-02-23 23:50:49 +0900
committerGitHub <noreply@github.com>2022-02-23 23:50:49 +0900
commita489194b55817b68213618fa81718b7beae9eba0 (patch)
tree0cf7c6182028583e81b7cdcd69479274c4cbb819 /zellij-client
parentchore(version): bump development version (diff)
downloadsl0ppij-a489194b55817b68213618fa81718b7beae9eba0.tar.gz
sl0ppij-a489194b55817b68213618fa81718b7beae9eba0.tar.xz
sl0ppij-a489194b55817b68213618fa81718b7beae9eba0.zip
fix: invalid assignment of `client_id` (#1052)
* feat: sync socket connection in * chore: apply clippy * chore: change message name
Diffstat (limited to 'zellij-client')
-rw-r--r--zellij-client/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/zellij-client/src/lib.rs b/zellij-client/src/lib.rs
index 9bc8828a..0e4f0e20 100644
--- a/zellij-client/src/lib.rs
+++ b/zellij-client/src/lib.rs
@@ -35,6 +35,7 @@ pub(crate) enum ClientInstruction {
UnblockInputThread,
Exit(ExitReason),
SwitchToMode(InputMode),
+ Connected,
}
impl From<ServerToClientMsg> for ClientInstruction {
@@ -46,6 +47,7 @@ impl From<ServerToClientMsg> for ClientInstruction {
ServerToClientMsg::SwitchToMode(input_mode) => {
ClientInstruction::SwitchToMode(input_mode)
}
+ ServerToClientMsg::Connected => ClientInstruction::Connected,
}
}
}
@@ -58,6 +60,7 @@ impl From<&ClientInstruction> for ClientContext {
ClientInstruction::Render(_) => ClientContext::Render,
ClientInstruction::UnblockInputThread => ClientContext::UnblockInputThread,
ClientInstruction::SwitchToMode(_) => ClientContext::SwitchToMode,
+ ClientInstruction::Connected => ClientContext::Connected,
}
}
}
@@ -323,6 +326,7 @@ pub fn start_client(
.send(InputInstruction::SwitchToMode(input_mode))
.unwrap();
}
+ _ => {}
}
}