Skip to content

Commit 6f524a7

Browse files
committed
chore: lint
1 parent 7c31e2f commit 6f524a7

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/identity.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::{
44
baby_jubjub::{BabyJubjubConfig, EdwardsAffine},
55
error::SemaphoreError,
66
};
7-
use ark_ec::{twisted_edwards::TECurveConfig, CurveConfig, CurveGroup};
7+
use ark_ec::{CurveConfig, CurveGroup, twisted_edwards::TECurveConfig};
88
use ark_ed_on_bn254::{Fq, Fr};
99
use ark_ff::{BigInteger, PrimeField};
1010
use blake::Blake;

src/proof.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
use crate::{
2-
group::{Element, Group, MerkleProof, EMPTY_ELEMENT},
2+
MAX_TREE_DEPTH, MIN_TREE_DEPTH,
3+
group::{EMPTY_ELEMENT, Element, Group, MerkleProof},
34
identity::Identity,
45
utils::{download_zkey, hash, to_big_uint, to_element},
56
witness::dispatch_witness,
6-
MAX_TREE_DEPTH, MIN_TREE_DEPTH,
77
};
8-
use anyhow::{bail, Ok, Result};
8+
use anyhow::{Ok, Result, bail};
99
use circom_prover::{
10+
CircomProver,
1011
prover::{
11-
circom::{self, CURVE_BN254, G1, G2, PROTOCOL_GROTH16},
1212
CircomProof, ProofLib, PublicInputs,
13+
circom::{self, CURVE_BN254, G1, G2, PROTOCOL_GROTH16},
1314
},
1415
witness::WitnessFn,
15-
CircomProver,
1616
};
1717
use num_bigint::BigUint;
18-
use num_traits::{identities::One, Zero};
18+
use num_traits::{Zero, identities::One};
1919
use std::{collections::HashMap, str::FromStr, time::Instant};
2020

2121
pub type PackedGroth16Proof = [BigUint; 8];

src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::error::Error;
77
use std::fs::File;
88
use std::io::copy;
99

10-
use crate::group::{Element, EMPTY_ELEMENT};
10+
use crate::group::{EMPTY_ELEMENT, Element};
1111

1212
pub fn string_to_biguint(num_str: &str) -> BigUint {
1313
num_str

tests/group.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ mod group {
7171
use ark_ed_on_bn254::Fq;
7272
use ark_ff::{BigInteger, PrimeField};
7373
use num_bigint::BigInt;
74-
use semaphore_rs::group::{Element, Group, EMPTY_ELEMENT};
74+
use semaphore_rs::group::{EMPTY_ELEMENT, Element, Group};
7575
use std::str::FromStr;
7676

7777
fn str_to_element(s: &str) -> Element {

0 commit comments

Comments
 (0)