From 7801abf7ca71f2ee47792a54f76111e6399d7ea1 Mon Sep 17 00:00:00 2001 From: David Peter Date: Fri, 2 Oct 2026 10:48:32 +0200 Subject: [PATCH] Use cargo_bin! to locate the integration test binary --- 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 }