diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-01-06 12:49:50 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-01-06 12:49:50 +0000 |
commit | ed732e86eb88393cdec471b263303adea6ffcb73 (patch) | |
tree | 9d76ac3477b73f1e84675ec3fee5428cb60d3075 /crates/rust-analyzer/src/main_loop.rs | |
parent | 66c575659e17035a747d3e4e10bcf4f3669a7143 (diff) | |
parent | 66ed821e18eadd3930a8621095c90b142763d517 (diff) |
Merge #7177
7177: Speed up snapshoting r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/rust-analyzer/src/main_loop.rs')
-rw-r--r-- | crates/rust-analyzer/src/main_loop.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/main_loop.rs b/crates/rust-analyzer/src/main_loop.rs index 53f9546b8..7ac6acf70 100644 --- a/crates/rust-analyzer/src/main_loop.rs +++ b/crates/rust-analyzer/src/main_loop.rs | |||
@@ -609,7 +609,7 @@ impl GlobalState { | |||
609 | if let Some(json) = configs.get_mut(0) { | 609 | if let Some(json) = configs.get_mut(0) { |
610 | // Note that json can be null according to the spec if the client can't | 610 | // Note that json can be null according to the spec if the client can't |
611 | // provide a configuration. This is handled in Config::update below. | 611 | // provide a configuration. This is handled in Config::update below. |
612 | let mut config = this.config.clone(); | 612 | let mut config = Config::clone(&*this.config); |
613 | config.update(json.take()); | 613 | config.update(json.take()); |
614 | this.update_configuration(config); | 614 | this.update_configuration(config); |
615 | } | 615 | } |