Fix: use default "[all]" if one isn't present

Same thing as the previous commit, but for the "[all]" table.
This commit is contained in:
2025-07-20 17:33:55 -05:00
parent 13ef1d25eb
commit 04dd333d72

View File

@@ -115,7 +115,9 @@ pub fn get_config(
// 4-1. Passing in the project-specific PartialConfig
proj.project_path(project),
// 4-2. Getting and converting to PartialConfig, or returning any Err() if one appears.
get_table(cfg_table, "all").and_then(PartialConfig::try_from)?,
get_table(cfg_table, "all")
.and_then(PartialConfig::try_from)
.unwrap_or(PartialConfig::default()),
))
})
.map(|pair| pair.0.merge(pair.1))