Limit TOML provider test constructor to tests

Avoid keeping the test-only constructor in normal builds now that production construction uses the config-dir aware path.

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
starr-openai
2026-05-05 15:43:44 -07:00
parent 54f55da877
commit cb14eace48

View File

@@ -45,6 +45,7 @@ struct TomlEnvironmentProvider {
}
impl TomlEnvironmentProvider {
#[cfg(test)]
fn new(config: EnvironmentsToml) -> Result<Self, ExecServerError> {
Self::new_with_config_dir(config, /*config_dir*/ None)
}