aboutsummaryrefslogtreecommitdiff
path: root/crates/gen_lsp_server
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-07-04 21:05:17 +0100
committerAleksey Kladov <[email protected]>2019-07-04 21:09:09 +0100
commit1834bae5b86c54ed9dece26e82436919d59e6cb7 (patch)
tree92c8b984e874b67fa1831613464bbe356c1af3dd /crates/gen_lsp_server
parent2b2cd829b0f95aef338227deb05ec7503dae9b6c (diff)
allow rustfmt to reorder imports
This wasn't a right decision in the first place, the feature flag was broken in the last rustfmt release, and syntax highlighting of imports is more important anyway
Diffstat (limited to 'crates/gen_lsp_server')
-rw-r--r--crates/gen_lsp_server/examples/01_gen_lsp_server.rs6
-rw-r--r--crates/gen_lsp_server/examples/02_gen_lsp_server_with_logging.rs12
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 @@
1use std::error::Error; 1use std::error::Error;
2 2
3use crossbeam_channel::{Sender, Receiver}; 3use crossbeam_channel::{Receiver, Sender};
4use gen_lsp_server::{handle_shutdown, run_server, stdio_transport, RawMessage, RawResponse};
4use lsp_types::{ 5use lsp_types::{
5 ServerCapabilities, InitializeParams,
6 request::{GotoDefinition, GotoDefinitionResponse}, 6 request::{GotoDefinition, GotoDefinitionResponse},
7 InitializeParams, ServerCapabilities,
7}; 8};
8use gen_lsp_server::{run_server, stdio_transport, handle_shutdown, RawMessage, RawResponse};
9 9
10fn main() -> Result<(), Box<dyn Error + Sync + Send>> { 10fn 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
45use std::error::Error; 45use std::error::Error;
46 46
47use crossbeam_channel::{Sender, Receiver}; 47use crossbeam_channel::{Receiver, Sender};
48use lsp_types::{ 48use gen_lsp_server::{
49 ServerCapabilities, InitializeParams, 49 handle_shutdown, run_server, stdio_transport, RawMessage, RawRequest, RawResponse,
50 request::{GotoDefinition, GotoDefinitionResponse},
51}; 50};
52use log::info; 51use log::info;
53use gen_lsp_server::{ 52use lsp_types::{
54 run_server, stdio_transport, handle_shutdown, RawMessage, RawResponse, RawRequest, 53 request::{GotoDefinition, GotoDefinitionResponse},
54 InitializeParams, ServerCapabilities,
55}; 55};
56 56
57fn main() -> Result<(), Box<dyn Error + Sync + Send>> { 57fn main() -> Result<(), Box<dyn Error + Sync + Send>> {