From 38a3007c565d8d45d49ec745e768943721141183 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Tue, 6 Apr 2021 20:53:34 -0500 Subject: [PATCH] fix(config): Properly layer type and override settings --- src/config.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/config.rs b/src/config.rs index e0c6a10..0f3fe91 100644 --- a/src/config.rs +++ b/src/config.rs @@ -46,6 +46,13 @@ impl Config { pub fn update(&mut self, source: &Config) { self.files.update(&source.files); self.default.update(&source.default); + for (type_name, engine) in source.type_.iter() { + self.type_ + .entry(type_name.to_owned()) + .or_insert_with(EngineConfig::default) + .update(engine); + } + self.overrides.update(&source.overrides); } }