mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
fix: prefer PathBuf to String for ParsePolicy::path field
This commit is contained in:
@@ -60,7 +60,7 @@ pub enum ExecPolicyError {
|
||||
|
||||
#[error("failed to parse execpolicy file {path}: {source}")]
|
||||
ParsePolicy {
|
||||
path: String,
|
||||
path: PathBuf,
|
||||
source: codex_execpolicy::Error,
|
||||
},
|
||||
}
|
||||
@@ -233,7 +233,7 @@ pub async fn load_exec_policy(config_stack: &ConfigLayerStack) -> Result<Policy,
|
||||
parser
|
||||
.parse(&identifier, &contents)
|
||||
.map_err(|source| ExecPolicyError::ParsePolicy {
|
||||
path: identifier,
|
||||
path: policy_path.clone(),
|
||||
source,
|
||||
})?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user