From 2ca475d4b16f05532eea044a244e7042a8dff068 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 25 Feb 2026 12:35:39 +0000 Subject: fix: suppress deprecation warnings for assert_cmd::cargo::cargo_bin cargo_bin!() macro requires CARGO_BIN_EXE_ env vars set at compile time, which are only available in the crate that declares the binaries. Since test_utils is a library crate it cannot use the macro, so suppress the deprecation warning on the four functions that call cargo_bin(). --- test_utils/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test_utils/src/lib.rs') diff --git a/test_utils/src/lib.rs b/test_utils/src/lib.rs index 0f59539..ae0fa66 100644 --- a/test_utils/src/lib.rs +++ b/test_utils/src/lib.rs @@ -1087,6 +1087,7 @@ fn sanatize(s: String) -> String { .collect::() } +#[allow(deprecated)] pub fn rexpect_with(args: I, timeout_ms: u64) -> Result where I: IntoIterator, @@ -1106,6 +1107,7 @@ where ) } +#[allow(deprecated)] pub fn rexpect_with_from_dir( dir: &PathBuf, args: I, @@ -1130,6 +1132,7 @@ where ) } +#[allow(deprecated)] pub fn remote_helper_rexpect_with_from_dir( dir: &PathBuf, nostr_remote_url: &str, @@ -1151,6 +1154,7 @@ pub fn remote_helper_rexpect_with_from_dir( ) } +#[allow(deprecated)] pub fn git_with_remote_helper_rexpect_with_from_dir( dir: &PathBuf, args: I, -- cgit v1.2.3