From ecc9df5f009deb8e8bbd8e52db9afbe41f8f880c Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 21 Aug 2018 22:24:59 +0300 Subject: simpler update --- crates/server/src/main_loop/mod.rs | 2 +- crates/server/src/server_world.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/server/src') diff --git a/crates/server/src/main_loop/mod.rs b/crates/server/src/main_loop/mod.rs index 12a903dac..752d6ddb2 100644 --- a/crates/server/src/main_loop/mod.rs +++ b/crates/server/src/main_loop/mod.rs @@ -252,7 +252,7 @@ fn on_notification( fn handle_request_on_threadpool( req: &mut Option, pool: &ThreadPool, - world: &mut ServerWorldState, + world: &ServerWorldState, sender: &Sender, f: fn(ServerWorld, R::Params) -> Result, ) -> Result<()> diff --git a/crates/server/src/server_world.rs b/crates/server/src/server_world.rs index 9850822cd..c0d2efb86 100644 --- a/crates/server/src/server_world.rs +++ b/crates/server/src/server_world.rs @@ -86,7 +86,7 @@ impl ServerWorldState { Ok(()) } - pub fn snapshot(&mut self) -> ServerWorld { + pub fn snapshot(&self) -> ServerWorld { let pm = self.path_map.clone(); ServerWorld { analysis: self.analysis.snapshot(move |id, path| { -- cgit v1.2.3