mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 22:24:14 +00:00
Protect against {}
This commit is contained in:
parent
adc4bb5406
commit
a32dd9c478
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ impl Config {
|
||||||
pub fn update(&mut self, json: serde_json::Value) {
|
pub fn update(&mut self, json: serde_json::Value) {
|
||||||
log::info!("Config::update({:#})", json);
|
log::info!("Config::update({:#})", json);
|
||||||
|
|
||||||
if json.is_null() {
|
if json.is_null() || json.as_object().map_or(false, |it| it.is_empty()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue