diff options
| author | Kunal Mohan <kunalmohan99@gmail.com> | 2021-04-29 15:25:55 +0530 |
|---|---|---|
| committer | Kunal Mohan <kunalmohan99@gmail.com> | 2021-05-04 20:48:16 +0530 |
| commit | 9110e444b8ef2f96a0386b7c5e65283a2b5456c0 (patch) | |
| tree | 8ee2bd3e08f0b8a3594a9de6ac942056042e315d /src/common/errors.rs | |
| parent | Refactor CommandIsExecuting to have a single variant (diff) | |
| download | sl0ppij-9110e444b8ef2f96a0386b7c5e65283a2b5456c0.tar.gz sl0ppij-9110e444b8ef2f96a0386b7c5e65283a2b5456c0.tar.xz sl0ppij-9110e444b8ef2f96a0386b7c5e65283a2b5456c0.zip | |
remove Split, OpenFile and MoveFocus from CliArgs
Diffstat (limited to 'src/common/errors.rs')
| -rw-r--r-- | src/common/errors.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/common/errors.rs b/src/common/errors.rs index 0b91a09d..411e0225 100644 --- a/src/common/errors.rs +++ b/src/common/errors.rs @@ -341,10 +341,6 @@ impl From<&ClientInstruction> for ClientContext { /// Stack call representations corresponding to the different types of [`ServerInstruction`]s. #[derive(Debug, Clone, Copy, PartialEq, Serialize, Deserialize)] pub enum ServerContext { - OpenFile, - SplitHorizontally, - SplitVertically, - MoveFocus, NewClient, Action, Render, @@ -356,10 +352,6 @@ pub enum ServerContext { impl From<&ServerInstruction> for ServerContext { fn from(server_instruction: &ServerInstruction) -> Self { match *server_instruction { - ServerInstruction::OpenFile(_) => ServerContext::OpenFile, - ServerInstruction::SplitHorizontally => ServerContext::SplitHorizontally, - ServerInstruction::SplitVertically => ServerContext::SplitVertically, - ServerInstruction::MoveFocus => ServerContext::MoveFocus, ServerInstruction::NewClient(..) => ServerContext::NewClient, ServerInstruction::Action(_) => ServerContext::Action, ServerInstruction::TerminalResize(_) => ServerContext::TerminalResize, |
