Module map implementation

This commit is contained in:
Aleksey Kladov 2018-08-21 18:30:10 +03:00
parent 4d8be26584
commit b937262c9b
7 changed files with 247 additions and 47 deletions

View file

@ -86,7 +86,7 @@ impl ServerWorldState {
Ok(())
}
pub fn snapshot(&self) -> ServerWorld {
pub fn snapshot(&mut self) -> ServerWorld {
let pm = self.path_map.clone();
ServerWorld {
analysis: self.analysis.snapshot(move |id, path| {