mirror of
https://github.com/openai/codex.git
synced 2026-05-19 18:52:57 +00:00
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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user