diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-07-04 21:09:32 +0100 |
---|---|---|
committer | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-07-04 21:09:32 +0100 |
commit | cacdb0eab8131bfb945eb7ed0150c92ec56eefe2 (patch) | |
tree | f762de90ce813591bc640ae0bce36493a3dcafa9 /crates/gen_lsp_server | |
parent | 4e8664d9d37021e85d72b6228fa45e7edf4a1a74 (diff) | |
parent | 1834bae5b86c54ed9dece26e82436919d59e6cb7 (diff) |
Merge #1486
1486: allow rustfmt to reorder imports r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/gen_lsp_server')
-rw-r--r-- | crates/gen_lsp_server/examples/01_gen_lsp_server.rs | 6 | ||||
-rw-r--r-- | crates/gen_lsp_server/examples/02_gen_lsp_server_with_logging.rs | 12 |
2 files changed, 9 insertions, 9 deletions
diff --git a/crates/gen_lsp_server/examples/01_gen_lsp_server.rs b/crates/gen_lsp_server/examples/01_gen_lsp_server.rs index bc497f74a..f49965064 100644 --- a/crates/gen_lsp_server/examples/01_gen_lsp_server.rs +++ b/crates/gen_lsp_server/examples/01_gen_lsp_server.rs | |||
@@ -1,11 +1,11 @@ | |||
1 | use std::error::Error; | 1 | use std::error::Error; |
2 | 2 | ||
3 | use crossbeam_channel::{Sender, Receiver}; | 3 | use crossbeam_channel::{Receiver, Sender}; |
4 | use gen_lsp_server::{handle_shutdown, run_server, stdio_transport, RawMessage, RawResponse}; | ||
4 | use lsp_types::{ | 5 | use lsp_types::{ |
5 | ServerCapabilities, InitializeParams, | ||
6 | request::{GotoDefinition, GotoDefinitionResponse}, | 6 | request::{GotoDefinition, GotoDefinitionResponse}, |
7 | InitializeParams, ServerCapabilities, | ||
7 | }; | 8 | }; |
8 | use gen_lsp_server::{run_server, stdio_transport, handle_shutdown, RawMessage, RawResponse}; | ||
9 | 9 | ||
10 | fn main() -> Result<(), Box<dyn Error + Sync + Send>> { | 10 | fn main() -> Result<(), Box<dyn Error + Sync + Send>> { |
11 | let (receiver, sender, io_threads) = stdio_transport(); | 11 | let (receiver, sender, io_threads) = stdio_transport(); |
diff --git a/crates/gen_lsp_server/examples/02_gen_lsp_server_with_logging.rs b/crates/gen_lsp_server/examples/02_gen_lsp_server_with_logging.rs index 1a6174462..3c48106c5 100644 --- a/crates/gen_lsp_server/examples/02_gen_lsp_server_with_logging.rs +++ b/crates/gen_lsp_server/examples/02_gen_lsp_server_with_logging.rs | |||
@@ -44,14 +44,14 @@ | |||
44 | 44 | ||
45 | use std::error::Error; | 45 | use std::error::Error; |
46 | 46 | ||
47 | use crossbeam_channel::{Sender, Receiver}; | 47 | use crossbeam_channel::{Receiver, Sender}; |
48 | use lsp_types::{ | 48 | use gen_lsp_server::{ |
49 | ServerCapabilities, InitializeParams, | 49 | handle_shutdown, run_server, stdio_transport, RawMessage, RawRequest, RawResponse, |
50 | request::{GotoDefinition, GotoDefinitionResponse}, | ||
51 | }; | 50 | }; |
52 | use log::info; | 51 | use log::info; |
53 | use gen_lsp_server::{ | 52 | use lsp_types::{ |
54 | run_server, stdio_transport, handle_shutdown, RawMessage, RawResponse, RawRequest, | 53 | request::{GotoDefinition, GotoDefinitionResponse}, |
54 | InitializeParams, ServerCapabilities, | ||
55 | }; | 55 | }; |
56 | 56 | ||
57 | fn main() -> Result<(), Box<dyn Error + Sync + Send>> { | 57 | fn main() -> Result<(), Box<dyn Error + Sync + Send>> { |