cargo fmt

This commit is contained in:
Nicholas Ward 2021-07-22 10:57:08 -07:00
parent 5d30124101
commit b6e74b8244
3 changed files with 4 additions and 5 deletions

View File

@ -94,7 +94,7 @@ impl Field for QuadraticCrandallField {
let first = self.0[0].to_canonical_biguint();
let second = self.0[1].to_canonical_biguint();
let combined = second * Self::CHARACTERISTIC + first;
combined
}

View File

@ -128,7 +128,7 @@ impl Field for QuarticCrandallField {
let second = self.0[1].to_canonical_biguint();
let third = self.0[2].to_canonical_biguint();
let fourth = self.0[3].to_canonical_biguint();
let mut combined = fourth;
combined *= Self::CHARACTERISTIC;
combined += third;
@ -136,7 +136,7 @@ impl Field for QuarticCrandallField {
combined += second;
combined *= Self::CHARACTERISTIC;
combined += first;
combined
}

View File

@ -161,7 +161,7 @@ macro_rules! test_prime_field_arithmetic {
// Can be 32 or 64; doesn't have to be computer's actual word
// bits. Choosing 32 gives more tests...
const WORD_BITS: usize = 32;
#[test]
fn arithmetic_addition() {
let modulus = <$field>::order();
@ -362,4 +362,3 @@ macro_rules! test_field_arithmetic {
}
};
}