From 4e9a5dd25bf84d35dbc5c16095435da330995543 Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Sun, 20 Jul 2025 12:17:27 -0500 Subject: [PATCH] Delete a now-solved FIXME comment --- src/config.rs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/config.rs b/src/config.rs index 51c6a3e..585e703 100644 --- a/src/config.rs +++ b/src/config.rs @@ -127,10 +127,10 @@ pub fn get_config( #[cfg_attr(test, derive(PartialEq))] pub struct PartialConfig { project_path: Option, - gitea_url: Option, - owner: Option, - repo: Option, - token: Option, + pub gitea_url: Option, + pub owner: Option, + pub repo: Option, + pub token: Option, } impl PartialConfig { @@ -259,11 +259,6 @@ mod tests { } #[test] - // FIXME: Allow user-specified search paths, then update test to use them. - // This test can only work if there's a config file the program can find. - // Right now, that means a file called "gt-tool.toml" in - // 1. `/etc` - // 2. anything inside `$XDG_CONFIG_DIRS` fn check_get_config() -> Result<()> { let search_paths = ["./test_data/sample_config.toml"] .into_iter()