From d47cb77e1646782fd018ecfa867590ed5c5d3b02 Mon Sep 17 00:00:00 2001 From: Andy Leiserson Date: Fri, 23 Feb 2024 10:38:29 -0800 Subject: [PATCH] Use unreachable! instead of panic! I was hoping that this would exclude it from coverage, but it didn't. --- ipa-core/src/test_fixture/circuit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipa-core/src/test_fixture/circuit.rs b/ipa-core/src/test_fixture/circuit.rs index 8bb3655b5..278d57195 100644 --- a/ipa-core/src/test_fixture/circuit.rs +++ b/ipa-core/src/test_fixture/circuit.rs @@ -105,7 +105,7 @@ pub async fn arithmetic( .collect::>() .try_into() else { - panic!("infallible try_into array"); + unreachable!("infallible try_into array"); }; let (res0, res1, res2) = join3(fut0, fut1, fut2).await;