From 7125f0e3c64ae34b6ff860ddc2f9e9923da8567f Mon Sep 17 00:00:00 2001 From: realbigsean Date: Fri, 18 Feb 2022 18:34:17 -0700 Subject: [PATCH] cargo fix --- consensus/types/src/beacon_block_and_blobs.rs | 6 +++--- consensus/types/src/fork_name.rs | 2 +- consensus/types/src/kzg_commitment.rs | 5 ----- consensus/types/src/lib.rs | 1 - 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/consensus/types/src/beacon_block_and_blobs.rs b/consensus/types/src/beacon_block_and_blobs.rs index b39fff771..a24b751ad 100644 --- a/consensus/types/src/beacon_block_and_blobs.rs +++ b/consensus/types/src/beacon_block_and_blobs.rs @@ -1,7 +1,7 @@ -use crate::{BLSFieldElement, Blob, EthSpec, SignedBeaconBlock}; +use crate::{Blob, EthSpec, SignedBeaconBlock}; use serde_derive::{Deserialize, Serialize}; -use ssz_derive::{Decode, Encode}; -use ssz_types::{FixedVector, VariableList}; +use ssz_derive::{Encode}; +use ssz_types::{VariableList}; use tree_hash::TreeHash; use tree_hash_derive::TreeHash; diff --git a/consensus/types/src/fork_name.rs b/consensus/types/src/fork_name.rs index dd83cf5a3..f64726a59 100644 --- a/consensus/types/src/fork_name.rs +++ b/consensus/types/src/fork_name.rs @@ -1,4 +1,4 @@ -use crate::{ChainSpec, Epoch, Fork}; +use crate::{ChainSpec, Epoch}; use serde_derive::{Deserialize, Serialize}; use std::convert::TryFrom; use std::fmt::{self, Display, Formatter}; diff --git a/consensus/types/src/kzg_commitment.rs b/consensus/types/src/kzg_commitment.rs index 154cb6b00..4098451f2 100644 --- a/consensus/types/src/kzg_commitment.rs +++ b/consensus/types/src/kzg_commitment.rs @@ -3,12 +3,7 @@ use crate::*; use derivative::Derivative; use serde_derive::{Deserialize, Serialize}; use ssz::{Decode, DecodeError, Encode}; -use ssz_derive::{Decode, Encode}; -use ssz_types::VariableList; -use superstruct::superstruct; -use test_random_derive::TestRandom; use tree_hash::TreeHash; -use tree_hash_derive::TreeHash; //TODO: is there a way around this newtype #[derive(Derivative, Debug, Clone, Serialize, Deserialize)] diff --git a/consensus/types/src/lib.rs b/consensus/types/src/lib.rs index 28234130d..87871aac8 100644 --- a/consensus/types/src/lib.rs +++ b/consensus/types/src/lib.rs @@ -94,7 +94,6 @@ pub mod sqlite; pub use kzg_commitment::KZGCommitment; use ethereum_types::{H160, H256}; -use serde::Serialize; pub use crate::aggregate_and_proof::AggregateAndProof; pub use crate::attestation::{Attestation, Error as AttestationError};