mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00

fix(test): Move path2url to CargoPathExt::to_url ### What does this PR try to resolve? This is a small step, like #14243, to improve the clarity of `cargo-test-support`s API. Overall, I'm trying to make it more obvious on https://docs.rs/cargo-test-support/latest/cargo_test_support/ which items to reach for when. I figured this is one that could be demoted to `paths` When doing so, I noticed `CargoPathExt`. I figured if we had any extension traits for `Path`, then this is a reasonable one to add. ### How should we test and review this PR? ### Additional information
WARNING: You might not want to use this outside of Cargo.
- This is designed for testing Cargo itself. Use at your own risk.
- No guarantee on any stability across versions.
- No feature request would be accepted unless proved useful for testing Cargo.