mirror of
https://github.com/crate-ci/typos.git
synced 2024-12-26 01:22:08 -05:00
fix(config): Properly layer type and override settings
This commit is contained in:
parent
0656a62860
commit
38a3007c56
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue