mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
path-uri: clarify host-native path conversion (#29501)
## Why Downstream refactors are producing confusing code with this functionality having a very generic name. Encoding the specific conversion approach in the method name makes it clearer. ## What Rename `PathUri::from_path` to `PathUri::from_host_native_path` and update its Rust call sites.
This commit is contained in:
1 parent
c53b1dae09
commit
11fab432be
31 files changed
+250
-198
No files matched your search
@@ -314,8 +314,9 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn helper_protocol_uses_path_uris() -> serde_json::Result<()> {
|
||||
let local_path = PathUri::from_path(std::env::current_dir().expect("cwd").join("file"))
|
||||
.expect("path URI");
|
||||
let local_path =
|
||||
PathUri::from_host_native_path(std::env::current_dir().expect("cwd").join("file"))
|
||||
.expect("path URI");
|
||||
let paths = [
|
||||
local_path,
|
||||
PathUri::parse("file://server/share/file").expect("path URI"),
|
||||
|
||||
Reference in new issue
Block a user