From 5204fc81fff959b7e2d92be277db412532e872cb Mon Sep 17 00:00:00 2001 From: Kirk Baird Date: Fri, 22 Mar 2019 14:52:37 +1100 Subject: [PATCH] cargo fmt --- eth2/utils/bls/src/signature.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/eth2/utils/bls/src/signature.rs b/eth2/utils/bls/src/signature.rs index 695fe3fd9..8a080e56d 100644 --- a/eth2/utils/bls/src/signature.rs +++ b/eth2/utils/bls/src/signature.rs @@ -31,11 +31,7 @@ impl Signature { /// been hashed. pub fn new_hashed(x_real_hashed: &[u8], x_imaginary_hashed: &[u8], sk: &SecretKey) -> Self { Signature { - signature: RawSignature::new_hashed( - x_real_hashed, - x_imaginary_hashed, - sk.as_raw(), - ), + signature: RawSignature::new_hashed(x_real_hashed, x_imaginary_hashed, sk.as_raw()), is_empty: false, } } @@ -87,7 +83,8 @@ impl Signature { pub fn from_bytes(bytes: &[u8]) -> Result { for byte in bytes { if *byte != 0 { - let raw_signature = RawSignature::from_bytes(&bytes).map_err(|_| DecodeError::Invalid)?; + let raw_signature = + RawSignature::from_bytes(&bytes).map_err(|_| DecodeError::Invalid)?; return Ok(Signature { signature: raw_signature, is_empty: false,