From 04dd333d724d78383b90d0b08331b0479ef20792 Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Sun, 20 Jul 2025 17:33:55 -0500 Subject: [PATCH] Fix: use default "[all]" if one isn't present Same thing as the previous commit, but for the "[all]" table. --- src/config.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index f3252ca..dfe4f94 100644 --- a/src/config.rs +++ b/src/config.rs @@ -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))