mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Refctor
This commit is contained in:
parent
535bd7ccf7
commit
25aebb5225
2 changed files with 120 additions and 81 deletions
|
@ -31,7 +31,7 @@ use flexi_logger::Logger;
|
|||
use libanalysis::WorldState;
|
||||
|
||||
use ::{
|
||||
io::{Io, RawMsg, RawResponse, RawNotification}
|
||||
io::{Io, RawMsg, RawResponse, RawRequest, RawNotification}
|
||||
};
|
||||
|
||||
pub type Result<T> = ::std::result::Result<T, ::failure::Error>;
|
||||
|
@ -104,6 +104,7 @@ fn initialize(io: &mut Io) -> Result<()> {
|
|||
|
||||
enum Task {
|
||||
Respond(RawResponse),
|
||||
Request(RawRequest),
|
||||
Notify(RawNotification),
|
||||
Die(::failure::Error),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue