fix(config): Properly layer type and override settings

This commit is contained in:
Ed Page 2021-04-06 20:53:34 -05:00
parent 0656a62860
commit 38a3007c56

View file

@ -46,6 +46,13 @@ impl Config {
pub fn update(&mut self, source: &Config) { pub fn update(&mut self, source: &Config) {
self.files.update(&source.files); self.files.update(&source.files);
self.default.update(&source.default); 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);
} }
} }