From 247c06dd9e757e600ae466a0024e50380c29f1c1 Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Thu, 17 Jul 2025 13:32:55 -0500 Subject: [PATCH] Rename the config-string-reading function --- src/config.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config.rs b/src/config.rs index f6df0c7..c8ace99 100644 --- a/src/config.rs +++ b/src/config.rs @@ -71,7 +71,7 @@ struct WholeFile { project_overrides: Vec, } -fn lconf(text: &str) -> Result { +fn read_conf_str(text: &str) -> Result { let mut whole = WholeFile::default(); let toml_val = text.parse::()?; @@ -235,7 +235,7 @@ repo = \"rcalc\" ], }; - let conf = lconf(fx_sample_config_string)?; + let conf = read_conf_str(fx_sample_config_string)?; println!(" ->> Test conf: {:?}", conf); println!(" ->> Ref conf: {:?}", fx_expected_struct); @@ -253,7 +253,7 @@ repo = \"rcalc\" #[test] fn read_config_string_empty() { let fx_sample_cfg = ""; - let conf = lconf(fx_sample_cfg); + let conf = read_conf_str(fx_sample_cfg); assert!(conf.is_err()); } }