aboutsummaryrefslogtreecommitdiff
path: root/crates/server/src/main.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-09-01 16:03:57 +0100
committerAleksey Kladov <[email protected]>2018-09-01 16:03:57 +0100
commit4268fbeaa1e9f98e033c72afce5dc8333da4b4b7 (patch)
tree7822fe514b00b84893d981b75aef2725030dd376 /crates/server/src/main.rs
parent8f1ce8275347e915b1cc824567e96369875cefd4 (diff)
simplify
Diffstat (limited to 'crates/server/src/main.rs')
-rw-r--r--crates/server/src/main.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/crates/server/src/main.rs b/crates/server/src/main.rs
index 3e3bd44a1..ecc1f58f8 100644
--- a/crates/server/src/main.rs
+++ b/crates/server/src/main.rs
@@ -55,7 +55,13 @@ fn main() -> Result<()> {
55 55
56fn main_inner() -> Result<()> { 56fn main_inner() -> Result<()> {
57 let (receiver, sender, threads) = stdio_transport(); 57 let (receiver, sender, threads) = stdio_transport();
58 run_server(caps::server_capabilities(), main_loop::main_loop, receiver, sender)?; 58 let root = ::std::env::current_dir()?;
59 run_server(
60 caps::server_capabilities(),
61 |r, s| main_loop::main_loop(root, r, s),
62 receiver,
63 sender,
64 )?;
59 info!("shutting down IO..."); 65 info!("shutting down IO...");
60 threads.join()?; 66 threads.join()?;
61 info!("... IO is down"); 67 info!("... IO is down");