diff options
author | Aleksey Kladov <[email protected]> | 2018-08-21 20:24:59 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-21 20:24:59 +0100 |
commit | ecc9df5f009deb8e8bbd8e52db9afbe41f8f880c (patch) | |
tree | 562598b1215fd67dc93860acca66852c114bc5c0 /crates/server/src | |
parent | b937262c9b75a361b95a6a27260a71c737e035bf (diff) |
simpler update
Diffstat (limited to 'crates/server/src')
-rw-r--r-- | crates/server/src/main_loop/mod.rs | 2 | ||||
-rw-r--r-- | crates/server/src/server_world.rs | 2 |
2 files changed, 2 insertions, 2 deletions
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( | |||
252 | fn handle_request_on_threadpool<R: req::ClientRequest>( | 252 | fn handle_request_on_threadpool<R: req::ClientRequest>( |
253 | req: &mut Option<RawRequest>, | 253 | req: &mut Option<RawRequest>, |
254 | pool: &ThreadPool, | 254 | pool: &ThreadPool, |
255 | world: &mut ServerWorldState, | 255 | world: &ServerWorldState, |
256 | sender: &Sender<Task>, | 256 | sender: &Sender<Task>, |
257 | f: fn(ServerWorld, R::Params) -> Result<R::Result>, | 257 | f: fn(ServerWorld, R::Params) -> Result<R::Result>, |
258 | ) -> Result<()> | 258 | ) -> 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 { | |||
86 | Ok(()) | 86 | Ok(()) |
87 | } | 87 | } |
88 | 88 | ||
89 | pub fn snapshot(&mut self) -> ServerWorld { | 89 | pub fn snapshot(&self) -> ServerWorld { |
90 | let pm = self.path_map.clone(); | 90 | let pm = self.path_map.clone(); |
91 | ServerWorld { | 91 | ServerWorld { |
92 | analysis: self.analysis.snapshot(move |id, path| { | 92 | analysis: self.analysis.snapshot(move |id, path| { |