diff options
Diffstat (limited to 'crates/server')
-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| { |