From ad3212941435aaf0d487615c21e8390d5cb97891 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 5 Mar 2026 21:40:48 +0000 Subject: fix(test_utils): suppress deprecated cargo_bin warning use_ngit_pr_checkout uses assert_cmd::cargo::cargo_bin which is deprecated in assert_cmd 2.1.0. Add #[allow(deprecated)] consistent with the existing suppression on rexpect_with and other callers. --- test_utils/src/lib.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'test_utils') diff --git a/test_utils/src/lib.rs b/test_utils/src/lib.rs index ccd9d80..48273e8 100644 --- a/test_utils/src/lib.rs +++ b/test_utils/src/lib.rs @@ -1535,10 +1535,8 @@ pub fn use_ngit_list_to_download_and_checkout_proposal_branch( /// Fetch proposals into the local cache and checkout the one matching /// `branch_name_in_event` using `ngit pr checkout `. /// Requires relays to already be running. -pub fn use_ngit_pr_checkout( - test_repo: &GitTestRepo, - branch_name_in_event: &str, -) -> Result<()> { +#[allow(deprecated)] +pub fn use_ngit_pr_checkout(test_repo: &GitTestRepo, branch_name_in_event: &str) -> Result<()> { // populate the local cache let mut p = CliTester::new_from_dir( &test_repo.dir, @@ -1582,9 +1580,7 @@ pub fn use_ngit_pr_checkout( .unwrap_or(false) }) .ok_or_else(|| { - anyhow::anyhow!( - "no proposal found for branch {branch_name_in_event} in: {stdout}" - ) + anyhow::anyhow!("no proposal found for branch {branch_name_in_event} in: {stdout}") })?; let proposal_id = entry["id"].as_str().unwrap_or_default().to_string(); -- cgit v1.2.3