Organize imports (#188)

* Organize imports

Use rustfmt to organize imports.  Resolve #162

* remove unused imports

* cargo fmt
This commit is contained in:
Eduard S. 2025-04-07 16:19:13 -07:00 committed by GitHub
parent 1214cdfa1b
commit 24ff82dd3d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
32 changed files with 329 additions and 276 deletions

View file

@ -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());

View file

@ -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