From e6ee13ff3169bb2b80868f45cbc298c6164f7e4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michele=20Orr=C3=B9?= Date: Tue, 22 Oct 2024 15:35:24 +0200 Subject: [PATCH] cargo fmt --- nimue-pow/src/blake3.rs | 4 +--- nimue-pow/src/keccak.rs | 4 +--- nimue/src/plugins/ark/tests.rs | 4 ++-- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/nimue-pow/src/blake3.rs b/nimue-pow/src/blake3.rs index f1712ba..455abe0 100644 --- a/nimue-pow/src/blake3.rs +++ b/nimue-pow/src/blake3.rs @@ -144,9 +144,7 @@ impl Blake3PoW { #[test] fn test_pow_blake3() { - use crate::{ - ByteIOPattern, IOPattern, PoWIOPattern, ByteReader, ByteWriter, PoWChallenge - }; + use crate::{ByteIOPattern, ByteReader, ByteWriter, IOPattern, PoWChallenge, PoWIOPattern}; const BITS: f64 = 10.0; diff --git a/nimue-pow/src/keccak.rs b/nimue-pow/src/keccak.rs index 16c7912..29a010f 100644 --- a/nimue-pow/src/keccak.rs +++ b/nimue-pow/src/keccak.rs @@ -30,9 +30,7 @@ impl PowStrategy for KeccakPoW { #[test] fn test_pow_keccak() { - use crate::{ - ByteIOPattern, ByteReader, ByteWriter, IOPattern, PoWIOPattern, PoWChallenge - }; + use crate::{ByteIOPattern, ByteReader, ByteWriter, IOPattern, PoWChallenge, PoWIOPattern}; const BITS: f64 = 10.0; diff --git a/nimue/src/plugins/ark/tests.rs b/nimue/src/plugins/ark/tests.rs index 557d4e1..c4852ff 100644 --- a/nimue/src/plugins/ark/tests.rs +++ b/nimue/src/plugins/ark/tests.rs @@ -77,7 +77,7 @@ fn test_arkworks_end_to_end() -> ProofResult<()> { #[test] fn test_squeeze_bytes_from_modp() { - use ark_bls12_381::{Fr, Fq}; + use ark_bls12_381::{Fq, Fr}; use ark_ff::PrimeField; use crate::plugins::random_bytes_in_random_modp; @@ -90,7 +90,7 @@ fn test_squeeze_bytes_from_modp() { #[test] fn test_arkworks() { - use ark_bls12_381::{Fr, Fq2}; + use ark_bls12_381::{Fq2, Fr}; type F = Fr; type F2 = Fq2;