Organize imports (#188)
* Organize imports Use rustfmt to organize imports. Resolve #162 * remove unused imports * cargo fmt
This commit is contained in:
parent
1214cdfa1b
commit
24ff82dd3d
32 changed files with 329 additions and 276 deletions
|
|
@ -1,18 +1,17 @@
|
|||
use std::sync::Arc;
|
||||
|
||||
use anyhow::Result;
|
||||
use NativePredicate as NP;
|
||||
use StatementTmplBuilder as STB;
|
||||
|
||||
use crate::{
|
||||
frontend::{
|
||||
literal, CustomPredicateBatch, CustomPredicateBatchBuilder, CustomPredicateRef,
|
||||
NativePredicate, Predicate, StatementTmplBuilder, Value,
|
||||
NativePredicate, Predicate, StatementTmplBuilder,
|
||||
},
|
||||
middleware::{self, Params, PodType, KEY_SIGNER, KEY_TYPE},
|
||||
};
|
||||
|
||||
use NativePredicate as NP;
|
||||
use StatementTmplBuilder as STB;
|
||||
|
||||
/// Instantiates an ETH friend batch
|
||||
pub fn eth_friend_batch(params: &Params) -> Result<Arc<CustomPredicateBatch>> {
|
||||
let mut builder = CustomPredicateBatchBuilder::new("eth_friend".into());
|
||||
|
|
|
|||
|
|
@ -1,17 +1,19 @@
|
|||
pub mod custom;
|
||||
|
||||
use std::collections::HashMap;
|
||||
|
||||
use anyhow::{anyhow, Result};
|
||||
use custom::{eth_dos_batch, eth_friend_batch};
|
||||
use std::collections::HashMap;
|
||||
|
||||
use crate::backends::plonky2::mock::signedpod::MockSigner;
|
||||
use crate::frontend::CustomPredicateRef;
|
||||
use crate::frontend::{
|
||||
containers::{Dictionary, Set},
|
||||
MainPodBuilder, SignedPod, SignedPodBuilder, Statement, Value,
|
||||
use crate::{
|
||||
backends::plonky2::mock::signedpod::MockSigner,
|
||||
frontend::{
|
||||
containers::{Dictionary, Set},
|
||||
CustomPredicateRef, MainPodBuilder, SignedPod, SignedPodBuilder, Statement, Value,
|
||||
},
|
||||
middleware::{Params, PodType, KEY_SIGNER, KEY_TYPE},
|
||||
op,
|
||||
};
|
||||
use crate::middleware::{Params, PodType, KEY_SIGNER, KEY_TYPE};
|
||||
use crate::op;
|
||||
|
||||
// ZuKYC
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue