Skip to content

Commit

Permalink
Cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
fmiguelgarcia committed Jul 15, 2020
1 parent 33ba19d commit be11c80
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/r1cs/prover.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#![allow(non_snake_case)]

#[cfg(feature = "zeroize")]
use zeroize::Zeroize;
use core::mem;
use curve25519_dalek::ristretto::{CompressedRistretto, RistrettoPoint};
use curve25519_dalek::scalar::Scalar;
use curve25519_dalek::traits::{Identity, MultiscalarMul};
use merlin::Transcript;
#[cfg(feature = "zeroize")]
use zeroize::Zeroize;

use super::{
ConstraintSystem, LinearCombination, R1CSProof, RandomizableConstraintSystem,
Expand Down
2 changes: 1 addition & 1 deletion src/range_proof/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use crate::util;
use rand_core::{CryptoRng, RngCore};

#[cfg(feature = "serde")]
use serde::{self, Deserialize, Deserializer, Serialize, Serializer, de::Visitor};
use serde::{self, de::Visitor, Deserialize, Deserializer, Serialize, Serializer};

// Modules for MPC protocol

Expand Down
4 changes: 2 additions & 2 deletions src/range_proof/party.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
extern crate alloc;

use alloc::vec::Vec;
#[cfg(feature = "zeroize")]
use zeroize::Zeroize;
use core::iter;
use curve25519_dalek::ristretto::{CompressedRistretto, RistrettoPoint};
use curve25519_dalek::scalar::Scalar;
use curve25519_dalek::traits::MultiscalarMul;
use rand_core::{CryptoRng, RngCore};
#[cfg(feature = "zeroize")]
use zeroize::Zeroize;

use crate::errors::MPCError;
use crate::generators::{BulletproofGens, PedersenGens};
Expand Down
2 changes: 1 addition & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ extern crate alloc;

use alloc::vec;
use alloc::vec::Vec;
use curve25519_dalek::scalar::Scalar;
#[cfg(feature = "zeroize")]
use zeroize::Zeroize;
use curve25519_dalek::scalar::Scalar;

use crate::inner_product_proof::inner_product;

Expand Down

0 comments on commit be11c80

Please sign in to comment.