diff options
author | Aleksey Kladov <[email protected]> | 2018-08-12 22:09:30 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-12 22:09:30 +0100 |
commit | 25aebb5225da91d34a2cb946f93435f9f7e82a47 (patch) | |
tree | 02ba9d56aea6feb7be7b6f3e7f7634723ae50a47 /crates/server/src/main.rs | |
parent | 535bd7ccf73bcea549ddb7b01e7b3c4f35c6e856 (diff) |
Refctor
Diffstat (limited to 'crates/server/src/main.rs')
-rw-r--r-- | crates/server/src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/server/src/main.rs b/crates/server/src/main.rs index 4b250acfa..7416de08a 100644 --- a/crates/server/src/main.rs +++ b/crates/server/src/main.rs | |||
@@ -31,7 +31,7 @@ use flexi_logger::Logger; | |||
31 | use libanalysis::WorldState; | 31 | use libanalysis::WorldState; |
32 | 32 | ||
33 | use ::{ | 33 | use ::{ |
34 | io::{Io, RawMsg, RawResponse, RawNotification} | 34 | io::{Io, RawMsg, RawResponse, RawRequest, RawNotification} |
35 | }; | 35 | }; |
36 | 36 | ||
37 | pub type Result<T> = ::std::result::Result<T, ::failure::Error>; | 37 | pub type Result<T> = ::std::result::Result<T, ::failure::Error>; |
@@ -104,6 +104,7 @@ fn initialize(io: &mut Io) -> Result<()> { | |||
104 | 104 | ||
105 | enum Task { | 105 | enum Task { |
106 | Respond(RawResponse), | 106 | Respond(RawResponse), |
107 | Request(RawRequest), | ||
107 | Notify(RawNotification), | 108 | Notify(RawNotification), |
108 | Die(::failure::Error), | 109 | Die(::failure::Error), |
109 | } | 110 | } |