From f4d572dd4c16f54ea217fff0f6b685e1034a33d7 Mon Sep 17 00:00:00 2001 From: Matthias Goergens Date: Tue, 10 Dec 2024 14:07:36 +0800 Subject: [PATCH] Formatting --- sumcheck/src/prover.rs | 12 +++++------- sumcheck/src/prover_v2.rs | 12 +++++------- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/sumcheck/src/prover.rs b/sumcheck/src/prover.rs index 765327740..0dc5de870 100644 --- a/sumcheck/src/prover.rs +++ b/sumcheck/src/prover.rs @@ -116,13 +116,11 @@ impl IOPProverState { if rayon::current_num_threads() >= max_thread_id { rayon::spawn(spawn_task); } else { - { - panic!( - "rayon global thread pool size {} mismatch with desired poly size {}.", - rayon::current_num_threads(), - polys.len() - ); - } + panic!( + "rayon global thread pool size {} mismatch with desired poly size {}.", + rayon::current_num_threads(), + polys.len() + ); } } diff --git a/sumcheck/src/prover_v2.rs b/sumcheck/src/prover_v2.rs index d708fccae..b4021b77d 100644 --- a/sumcheck/src/prover_v2.rs +++ b/sumcheck/src/prover_v2.rs @@ -232,13 +232,11 @@ impl<'a, E: ExtensionField> IOPProverStateV2<'a, E> { { rayon::in_place_scope(scoped_fn) } else { - { - panic!( - "rayon global thread pool size {} mismatch with desired poly size {}.", - rayon::current_num_threads(), - polys.len() - ); - } + panic!( + "rayon global thread pool size {} mismatch with desired poly size {}.", + rayon::current_num_threads(), + polys.len() + ); }; if log2_max_thread_id == 0 {