aboutsummaryrefslogtreecommitdiff
path: root/crates/server/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-09-08 07:18:42 +0100
committerAleksey Kladov <[email protected]>2018-09-08 07:18:42 +0100
commit44334f6f56bd99635f650796af0db8047e4c21c4 (patch)
tree2cee555747588449ba3cc1279b254e9b2140b83e /crates/server/src
parent127814d9a7f62c834c0893ff05e933aac4be89e9 (diff)
fix labled expressions
Diffstat (limited to 'crates/server/src')
-rw-r--r--crates/server/src/main.rs3
-rw-r--r--crates/server/src/main_loop/mod.rs4
2 files changed, 5 insertions, 2 deletions
diff --git a/crates/server/src/main.rs b/crates/server/src/main.rs
index baabde629..968b3b87a 100644
--- a/crates/server/src/main.rs
+++ b/crates/server/src/main.rs
@@ -11,7 +11,8 @@ use gen_lsp_server::{run_server, stdio_transport};
11use m::Result; 11use m::Result;
12 12
13fn main() -> Result<()> { 13fn main() -> Result<()> {
14 Logger::with_env_or_str("m=error") 14 ::std::env::set_var("RUST_BACKTRACE", "short");
15 Logger::with_env_or_str("error")
15 .duplicate_to_stderr(Duplicate::All) 16 .duplicate_to_stderr(Duplicate::All)
16 .log_to_file() 17 .log_to_file()
17 .directory("log") 18 .directory("log")
diff --git a/crates/server/src/main_loop/mod.rs b/crates/server/src/main_loop/mod.rs
index 52f2a8977..2ef1e2d17 100644
--- a/crates/server/src/main_loop/mod.rs
+++ b/crates/server/src/main_loop/mod.rs
@@ -38,7 +38,9 @@ pub fn main_loop(
38 msg_sender: &mut Sender<RawMessage>, 38 msg_sender: &mut Sender<RawMessage>,
39) -> Result<()> { 39) -> Result<()> {
40 let pool = rayon::ThreadPoolBuilder::new() 40 let pool = rayon::ThreadPoolBuilder::new()
41 .num_threads(4).build() 41 .num_threads(4)
42 .panic_handler(|_| error!("thread panicked :("))
43 .build()
42 .unwrap(); 44 .unwrap();
43 let (task_sender, task_receiver) = unbounded::<Task>(); 45 let (task_sender, task_receiver) = unbounded::<Task>();
44 let (fs_sender, fs_receiver, fs_watcher) = vfs::roots_loader(); 46 let (fs_sender, fs_receiver, fs_watcher) = vfs::roots_loader();