diff options
Diffstat (limited to 'crates/server/src/server_world.rs')
-rw-r--r-- | crates/server/src/server_world.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/server/src/server_world.rs b/crates/server/src/server_world.rs index c0d2efb86..1593cd59f 100644 --- a/crates/server/src/server_world.rs +++ b/crates/server/src/server_world.rs | |||
@@ -87,11 +87,8 @@ impl ServerWorldState { | |||
87 | } | 87 | } |
88 | 88 | ||
89 | pub fn snapshot(&self) -> ServerWorld { | 89 | pub fn snapshot(&self) -> ServerWorld { |
90 | let pm = self.path_map.clone(); | ||
91 | ServerWorld { | 90 | ServerWorld { |
92 | analysis: self.analysis.snapshot(move |id, path| { | 91 | analysis: self.analysis.snapshot(self.path_map.clone()), |
93 | pm.resolve(id, path) | ||
94 | }), | ||
95 | path_map: self.path_map.clone() | 92 | path_map: self.path_map.clone() |
96 | } | 93 | } |
97 | } | 94 | } |