ITADN

Tests rely on deprecated `assert_cmd::cargo_bin` which will break on future Cargo versions

#1056Openepage 创建于 2025-12-18
E
epagecommented
https://github.com/JohnnyMorganz/StyLua/blob/74b5f5775b3c4c67dff3095b37820f3b55e5253a/src/cli/main.rs#L610 `cargo_bin` relies on implementation details of cargo that will soon break (rust-lang/cargo#16147, rust-lang/cargo#15010). You can test this by running: ``` CARGO_BUILD_BUILD_DIR="{cargo-cache-home}/build/{workspace-path-hash}" cargo test ``` The replacement is `assert_cmd::cargo_bin!`
0 条评论