fix: reduce usage of open_if_present (#11344)

This commit is contained in:
jif-oai
2026-02-10 19:25:07 +00:00
committed by GitHub
parent 0639c33892
commit 847a6092e6
11 changed files with 448 additions and 534 deletions

View File

@@ -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());