From 1d7a2f868a500b3cf287e7140cba118c2ae77ad3 Mon Sep 17 00:00:00 2001 From: querolita Date: Thu, 26 Oct 2023 16:34:53 +0200 Subject: [PATCH] replace block of error to ? according to clippy --- kimchi/src/tests/keccak.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kimchi/src/tests/keccak.rs b/kimchi/src/tests/keccak.rs index 5d72abd2b6..319719fe79 100644 --- a/kimchi/src/tests/keccak.rs +++ b/kimchi/src/tests/keccak.rs @@ -168,9 +168,7 @@ where for (row, gate) in gates.iter().enumerate().take(witness[0].len()) { let result = gate.verify_witness::(row, &witness, &cs, &witness[0][0..cs.public]); - if result.is_err() { - return result; - } + result?; } assert_eq!( runner