mirror of
https://github.com/openai/codex.git
synced 2026-11-19 23:05:23 +00:00
[codex] Make AbsolutePathBuf joins infallible (#16981)
Having to check for errors every time join is called is painful and unnecessary.
This commit is contained in:
1 parent
0b9e42f6f7
commit
f1a2b920f9
40 files changed
+361
-315
No files matched your search
@@ -1024,7 +1024,7 @@ fn normalize_harness_overrides_for_cwd(
|
||||
|
||||
let mut normalized = Vec::with_capacity(overrides.additional_writable_roots.len());
|
||||
for root in overrides.additional_writable_roots.drain(..) {
|
||||
let absolute = AbsolutePathBuf::resolve_path_against_base(root, base_cwd)?;
|
||||
let absolute = AbsolutePathBuf::resolve_path_against_base(root, base_cwd);
|
||||
normalized.push(absolute.into_path_buf());
|
||||
}
|
||||
overrides.additional_writable_roots = normalized;
|
||||
|
||||
Reference in new issue
Block a user