diff --git a/src/config.rs b/src/config.rs index bfd00797..24c1f535 100644 --- a/src/config.rs +++ b/src/config.rs @@ -540,12 +540,10 @@ trait Updateable<'de>: Serialize + Deserialize<'de> { fn update_value(&mut self, key: &str, value: S) { let mut raw = Value::try_from(&self).expect("unreachable"); - { - if let Ok(value) = Value::try_from(value) { - let _ = raw.insert(key, value); - } else { - return; - } + if let Ok(value) = Value::try_from(value) { + let _ = raw.insert(key, value); + } else { + return; } if let Ok(updated) = raw.try_into() {