From 2f33300c08ca215651b3901c5ff15b55d8bdee54 Mon Sep 17 00:00:00 2001 From: Deirdre Connolly Date: Tue, 8 Feb 2022 03:34:39 -0500 Subject: [PATCH] Use string literal to format unreachable message in test (#3483) * Use string literal to format unreachable message * Try removing the redundant format Co-authored-by: teor Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- zebrad/src/components/inbound/tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zebrad/src/components/inbound/tests.rs b/zebrad/src/components/inbound/tests.rs index 5b29f6f3..c16e73e3 100644 --- a/zebrad/src/components/inbound/tests.rs +++ b/zebrad/src/components/inbound/tests.rs @@ -70,10 +70,10 @@ async fn mempool_requests_for_transactions() { .await; match response { Ok(Response::TransactionIds(response)) => assert_eq!(response, added_transaction_ids), - _ => unreachable!(format!( + _ => unreachable!( "`MempoolTransactionIds` requests should always respond `Ok(Vec)`, got {:?}", response - )), + ), }; // Test `Request::TransactionsById`