simpler update

This commit is contained in:
Aleksey Kladov 2018-08-21 22:24:59 +03:00
parent b937262c9b
commit ecc9df5f00
4 changed files with 149 additions and 73 deletions

View file

@ -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| {