From 45a4c3b3265686ea0dbe52d26697bf260e4fea82 Mon Sep 17 00:00:00 2001 From: Nirvan Tyagi Date: Fri, 20 Nov 2020 13:03:42 -0500 Subject: [PATCH] 'cargo fmt' --- src/bits/uint8.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/bits/uint8.rs b/src/bits/uint8.rs index 8e294e9..bd6776a 100644 --- a/src/bits/uint8.rs +++ b/src/bits/uint8.rs @@ -297,13 +297,13 @@ impl CondSelectGadget for UInt8 { .zip(&false_value.bits) .map(|(t, f)| cond.select(t, f)) .collect::, SynthesisError>>()?; - let selected_value = cond.value().ok().and_then(|cond| { - if cond { - true_value.value().ok() - } else { - false_value.value().ok() - } - }); + let selected_value = cond.value().ok().and_then(|cond| { + if cond { + true_value.value().ok() + } else { + false_value.value().ok() + } + }); Ok(Self { bits: selected_bits, value: selected_value, @@ -401,8 +401,8 @@ mod test { for x in v.iter().zip(expected_to_be_same.iter()) { match x { - (&Boolean::Constant(true), &Boolean::Constant(true)) => {} - (&Boolean::Constant(false), &Boolean::Constant(false)) => {} + (&Boolean::Constant(true), &Boolean::Constant(true)) => {}, + (&Boolean::Constant(false), &Boolean::Constant(false)) => {}, _ => unreachable!(), } }