aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/main_loop
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_lsp_server/src/main_loop')
-rw-r--r--crates/ra_lsp_server/src/main_loop/handlers.rs8
-rw-r--r--crates/ra_lsp_server/src/main_loop/mod.rs4
2 files changed, 6 insertions, 6 deletions
diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs
index baf82f3fc..b27b5d007 100644
--- a/crates/ra_lsp_server/src/main_loop/handlers.rs
+++ b/crates/ra_lsp_server/src/main_loop/handlers.rs
@@ -155,8 +155,8 @@ pub fn handle_workspace_symbol(
155 world: ServerWorld, 155 world: ServerWorld,
156 params: req::WorkspaceSymbolParams, 156 params: req::WorkspaceSymbolParams,
157) -> Result<Option<Vec<SymbolInformation>>> { 157) -> Result<Option<Vec<SymbolInformation>>> {
158 let all_symbols = params.query.contains("#"); 158 let all_symbols = params.query.contains('#');
159 let libs = params.query.contains("*"); 159 let libs = params.query.contains('*');
160 let query = { 160 let query = {
161 let query: String = params 161 let query: String = params
162 .query 162 .query
@@ -280,8 +280,8 @@ pub fn handle_runnables(
280 .filter_map(|ws| { 280 .filter_map(|ws| {
281 let tgt = ws.target_by_root(path)?; 281 let tgt = ws.target_by_root(path)?;
282 Some(( 282 Some((
283 tgt.package(ws).name(ws).clone(), 283 tgt.package(ws).name(ws),
284 tgt.name(ws).clone(), 284 tgt.name(ws),
285 tgt.kind(ws), 285 tgt.kind(ws),
286 )) 286 ))
287 }) 287 })
diff --git a/crates/ra_lsp_server/src/main_loop/mod.rs b/crates/ra_lsp_server/src/main_loop/mod.rs
index aa3cf1dbd..e681062ca 100644
--- a/crates/ra_lsp_server/src/main_loop/mod.rs
+++ b/crates/ra_lsp_server/src/main_loop/mod.rs
@@ -45,7 +45,7 @@ enum Task {
45pub fn main_loop( 45pub fn main_loop(
46 internal_mode: bool, 46 internal_mode: bool,
47 root: PathBuf, 47 root: PathBuf,
48 msg_receriver: &Receiver<RawMessage>, 48 msg_receiver: &Receiver<RawMessage>,
49 msg_sender: &Sender<RawMessage>, 49 msg_sender: &Sender<RawMessage>,
50) -> Result<()> { 50) -> Result<()> {
51 let pool = rayon::ThreadPoolBuilder::new() 51 let pool = rayon::ThreadPoolBuilder::new()
@@ -67,7 +67,7 @@ pub fn main_loop(
67 root, 67 root,
68 &pool, 68 &pool,
69 msg_sender, 69 msg_sender,
70 msg_receriver, 70 msg_receiver,
71 task_sender, 71 task_sender,
72 task_receiver.clone(), 72 task_receiver.clone(),
73 fs_worker, 73 fs_worker,