From 4b561defef4db39b08cdfc265444ce6fe3fbdd97 Mon Sep 17 00:00:00 2001 From: David Peter Date: Fri, 2 Oct 2026 10:54:51 +0200 Subject: [PATCH] Use cargo_bin! to locate the integration test binary (#933) --- tests/common.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/common.rs b/tests/common.rs index b740888..fa03e46 100644 --- a/tests/common.rs +++ b/tests/common.rs @@ -1,9 +1,7 @@ use std::process::Command; -use assert_cmd::cargo::CommandCargoExt; - pub fn hyperfine_raw_command() -> Command { - let mut cmd = Command::cargo_bin("hyperfine").unwrap(); + let mut cmd = Command::new(assert_cmd::cargo::cargo_bin!("hyperfine")); cmd.current_dir("tests/"); cmd }