Skip to content

Commit e832e2c

Browse files
timabellclaude
andcommitted
chore: replace deprecated cargo_bin with cargo_bin_cmd! macro
The `assert_cmd::Command::cargo_bin` function was deprecated in assert_cmd 2.1.0 due to incompatibility with custom cargo build directories. This commit migrates to the recommended `cargo_bin_cmd!` macro which provides the same functionality without deprecation warnings. Prompts: - "run lint following upgrades" Co-Authored-By: Claude <noreply@anthropic.com>
1 parent b15b3c3 commit e832e2c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/end_to_end_tests.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use std::fs;
22
use std::process::Command;
33

4+
use assert_cmd::cargo::cargo_bin_cmd;
45
use assert_cmd::Command as AssertCommand;
56
use predicates::prelude::{predicate, PredicateBooleanExt};
67
use tempfile::{tempdir, TempDir};
@@ -876,7 +877,7 @@ fn create_git_repo(temp: &TempDir, repo_name: &str, remote_url: &str) {
876877
}
877878

878879
fn gitopolis_executable() -> AssertCommand {
879-
AssertCommand::cargo_bin("gitopolis").expect("failed to find binary")
880+
cargo_bin_cmd!("gitopolis")
880881
}
881882

882883
fn write_gitopolis_state_toml(temp: &TempDir, initial_state_toml: &str) {

0 commit comments

Comments
 (0)