mirror of
https://github.com/openai/codex.git
synced 2026-04-26 07:35:29 +00:00
fix: reduce usage of open_if_present (#11344)
This commit is contained in:
@@ -116,6 +116,7 @@ fn timestamp_at(
|
||||
)
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
fn set_rollout_mtime(path: &Path, updated_at_rfc3339: &str) -> Result<()> {
|
||||
let parsed = DateTime::parse_from_rfc3339(updated_at_rfc3339)?.with_timezone(&Utc);
|
||||
let times = FileTimes::new().set_modified(parsed.into());
|
||||
|
||||
Reference in New Issue
Block a user