mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
simpler update
This commit is contained in:
parent
b937262c9b
commit
ecc9df5f00
4 changed files with 149 additions and 73 deletions
|
@ -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| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue