mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00

use split_once for cleaner code ### What does this PR try to resolve? Search the code base for `.splitn(2` and replace with `.split_once` where it was clearer. I don't think any of them matter in practice. ### How should we test and review this PR? This was an internal re-factor, and the tests still pass. The two methods have subtly different semantics, so please review carefully.