Skip to content

fix: Tests rely on deprecated assert_cmd::cargo_bin which will break#856

Open
JiwaniZakir wants to merge 1 commit intosharkdp:masterfrom
JiwaniZakir:fix/issue-844
Open

fix: Tests rely on deprecated assert_cmd::cargo_bin which will break#856
JiwaniZakir wants to merge 1 commit intosharkdp:masterfrom
JiwaniZakir:fix/issue-844

Conversation

@JiwaniZakir
Copy link

Fixes #844

Replaces the deprecated Command::cargo_bin method from assert_cmd::cargo::CommandCargoExt with the cargo_bin! macro in tests/common.rs. The old trait-based API is deprecated and will break on future Cargo versions. The fix updates hyperfine_raw_command() to use Command::from(assert_cmd::cargo::cargo_bin!("hyperfine")) and removes the now-unused CommandCargoExt import. Verified by running the existing integration test suite against the updated common.rs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant