From b365e01bfd884ed5bea831f146bc74fe333ec786 Mon Sep 17 00:00:00 2001 From: Alex Ozdemir Date: Wed, 24 Apr 2024 00:36:59 -0700 Subject: [PATCH] rm dead imports --- src/hash/hashes/mod.rs | 1 - src/hash/pocklington/entropy.rs | 2 -- src/mp/bignat.rs | 1 - src/rollup/tx.rs | 1 - src/util/num.rs | 2 -- 5 files changed, 7 deletions(-) diff --git a/src/hash/hashes/mod.rs b/src/hash/hashes/mod.rs index d997768..ab3963b 100644 --- a/src/hash/hashes/mod.rs +++ b/src/hash/hashes/mod.rs @@ -11,7 +11,6 @@ use sapling_crypto::poseidon::{ QuinticSBox, }; -use std::default::Default; use std::marker::PhantomData; use std::sync::Arc; diff --git a/src/hash/pocklington/entropy.rs b/src/hash/pocklington/entropy.rs index 5b67dea..eaf4b50 100644 --- a/src/hash/pocklington/entropy.rs +++ b/src/hash/pocklington/entropy.rs @@ -8,8 +8,6 @@ use mp::bignat::BigNat; use util::bit::{Bit, Bitvector}; use util::gadget::Gadget; -use std::default::Default; - #[derive(Debug)] pub struct NatTemplate { pub random_bits: usize, diff --git a/src/mp/bignat.rs b/src/mp/bignat.rs index 101bba5..4104f5f 100644 --- a/src/mp/bignat.rs +++ b/src/mp/bignat.rs @@ -6,7 +6,6 @@ use sapling_crypto::circuit::boolean::Boolean; use std::borrow::Borrow; use std::cmp::{max, min, Ordering}; -use std::convert::From; use std::fmt::{self, Debug, Display, Formatter}; use std::rc::Rc; diff --git a/src/rollup/tx.rs b/src/rollup/tx.rs index 7547cbb..0de1cf5 100644 --- a/src/rollup/tx.rs +++ b/src/rollup/tx.rs @@ -102,7 +102,6 @@ pub mod circuit { use sapling_crypto::circuit::ecc::EdwardsPoint; use sapling_crypto::circuit::num::AllocatedNum; use sapling_crypto::jubjub::JubjubEngine; - use std::clone::Clone; use std::sync::Arc; use super::{Action, SignedTx}; diff --git a/src/util/num.rs b/src/util/num.rs index 1aedc5b..c4ad79e 100644 --- a/src/util/num.rs +++ b/src/util/num.rs @@ -4,8 +4,6 @@ use sapling_crypto::bellman::pairing::Engine; use sapling_crypto::bellman::{ConstraintSystem, LinearCombination, SynthesisError, Variable}; use sapling_crypto::circuit::num::AllocatedNum; -use std::convert::From; - use super::bit::{Bit, Bitvector}; use super::convert::f_to_nat; use super::convert::nat_to_f;