Skip to content

Commit

Permalink
fix(config): Properly layer type and override settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed Page committed Apr 7, 2021
1 parent 0656a62 commit 38a3007
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 38a3007

Please sign in to comment.