From 23817657687d35918c238893a7d6add0bcbaac72 Mon Sep 17 00:00:00 2001 From: Thor Kamphefner Date: Tue, 5 Sep 2023 14:16:26 -0700 Subject: [PATCH] fmt --- .../src/sha256/table16/message_schedule/schedule_util.rs | 5 +---- halo2_gadgets/src/sinsemilla.rs | 6 +----- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/halo2_gadgets/src/sha256/table16/message_schedule/schedule_util.rs b/halo2_gadgets/src/sha256/table16/message_schedule/schedule_util.rs index d8bf48eeba..42ed58a835 100644 --- a/halo2_gadgets/src/sha256/table16/message_schedule/schedule_util.rs +++ b/halo2_gadgets/src/sha256/table16/message_schedule/schedule_util.rs @@ -44,10 +44,7 @@ pub fn get_word_row(word_idx: usize) -> usize { } else if (14..=48).contains(&word_idx) { SUBREGION_0_ROWS + SUBREGION_1_ROWS + SUBREGION_2_WORD * (word_idx - 14) + 1 } else if (49..=61).contains(&word_idx) { - SUBREGION_0_ROWS - + SUBREGION_1_ROWS - + SUBREGION_2_ROWS - + SUBREGION_3_WORD * (word_idx - 49) + SUBREGION_0_ROWS + SUBREGION_1_ROWS + SUBREGION_2_ROWS + SUBREGION_3_WORD * (word_idx - 49) } else { SUBREGION_0_ROWS + SUBREGION_1_ROWS diff --git a/halo2_gadgets/src/sinsemilla.rs b/halo2_gadgets/src/sinsemilla.rs index 2f7110cc47..4a20ce4830 100644 --- a/halo2_gadgets/src/sinsemilla.rs +++ b/halo2_gadgets/src/sinsemilla.rs @@ -655,11 +655,7 @@ pub(crate) mod tests { |(l, (left, right))| { let merkle_crh = sinsemilla::HashDomain::from_Q((*Q).into()); let point = merkle_crh - .hash_to_point( - l.into_iter() - .chain(left) - .chain(right), - ) + .hash_to_point(l.into_iter().chain(left).chain(right)) .unwrap(); point.to_affine() },