From fa8103764a07bd273927447d434de18aace252d3 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Tue, 3 Jul 2018 09:08:48 +0100 Subject: [PATCH] cargo fmt --- src/bls12_381/fq.rs | 18 ++++++++++-------- src/bls12_381/fq2.rs | 10 ++++++---- src/bls12_381/fr.rs | 14 ++++++++------ src/lib.rs | 1 - 4 files changed, 24 insertions(+), 19 deletions(-) diff --git a/src/bls12_381/fq.rs b/src/bls12_381/fq.rs index 2661aa5..fd0d416 100644 --- a/src/bls12_381/fq.rs +++ b/src/bls12_381/fq.rs @@ -1584,14 +1584,16 @@ fn test_fq_is_valid() { 0x17c8be1800b9f059 ])).is_valid() ); - assert!(!Fq(FqRepr([ - 0xffffffffffffffff, - 0xffffffffffffffff, - 0xffffffffffffffff, - 0xffffffffffffffff, - 0xffffffffffffffff, - 0xffffffffffffffff - ])).is_valid()); + assert!( + !Fq(FqRepr([ + 0xffffffffffffffff, + 0xffffffffffffffff, + 0xffffffffffffffff, + 0xffffffffffffffff, + 0xffffffffffffffff, + 0xffffffffffffffff + ])).is_valid() + ); let mut rng = XorShiftRng::from_seed([0x5dbe6259, 0x8d313d76, 0x3237db17, 0xe5bc0654]); diff --git a/src/bls12_381/fq2.rs b/src/bls12_381/fq2.rs index 7ae159f..363439a 100644 --- a/src/bls12_381/fq2.rs +++ b/src/bls12_381/fq2.rs @@ -263,10 +263,12 @@ fn test_fq2_basics() { ); assert!(Fq2::zero().is_zero()); assert!(!Fq2::one().is_zero()); - assert!(!Fq2 { - c0: Fq::zero(), - c1: Fq::one(), - }.is_zero()); + assert!( + !Fq2 { + c0: Fq::zero(), + c1: Fq::one(), + }.is_zero() + ); } #[test] diff --git a/src/bls12_381/fr.rs b/src/bls12_381/fr.rs index 6e142f0..5e57631 100644 --- a/src/bls12_381/fr.rs +++ b/src/bls12_381/fr.rs @@ -388,12 +388,14 @@ fn test_fr_is_valid() { 0x73eda753299d7d48 ])).is_valid() ); - assert!(!Fr(FrRepr([ - 0xffffffffffffffff, - 0xffffffffffffffff, - 0xffffffffffffffff, - 0xffffffffffffffff - ])).is_valid()); + assert!( + !Fr(FrRepr([ + 0xffffffffffffffff, + 0xffffffffffffffff, + 0xffffffffffffffff, + 0xffffffffffffffff + ])).is_valid() + ); let mut rng = XorShiftRng::from_seed([0x5dbe6259, 0x8d313d76, 0x3237db17, 0xe5bc0654]); diff --git a/src/lib.rs b/src/lib.rs index 75af6e2..bbced76 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,7 +8,6 @@ #![cfg_attr(feature = "cargo-clippy", allow(many_single_char_names))] #![cfg_attr(feature = "cargo-clippy", allow(new_without_default_derive))] #![cfg_attr(feature = "cargo-clippy", allow(write_literal))] - // Force public structures to implement Debug #![deny(missing_debug_implementations)]