From 13ef1d25eb619488f5e88847f3d0adf0622ff661 Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Sun, 20 Jul 2025 17:32:11 -0500 Subject: [PATCH] Fix: use empty PartialConfig if proj conf missing If there is no project-specific configuration, use a default one instead. It still needs to be merged with the "[all]" one, assuming that exists. Now to do the same thing 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 1a256ea..f3252ca 100644 --- a/src/config.rs +++ b/src/config.rs @@ -105,8 +105,10 @@ pub fn get_config( // 2. Get table get_table(cfg_table, project) - // 3. convert to PartialConfig + // 3a. convert to PartialConfig .and_then(PartialConfig::try_from) + // 3b. or default, if the table couldn't be found. + .or(Ok(PartialConfig::default())) // 4. assemble a 2-tuple of PartialConfigs by... .and_then(|proj| { Ok((