diff --git a/Cargo.lock b/Cargo.lock index 1e488deb5..798324f75 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2978,7 +2978,6 @@ dependencies = [ "committable", "contract-bindings", "derive_more 0.99.18", - "dyn-clone 1.0.17 (registry+https://github.com/rust-lang/crates.io-index)", "ethers", "fluent-asserter", "futures", @@ -8809,7 +8808,6 @@ dependencies = [ "derivative", "derive_more 0.99.18", "dotenvy", - "dyn-clone 1.0.17 (registry+https://github.com/rust-lang/crates.io-index)", "escargot", "espresso-macros", "espresso-types", diff --git a/Cargo.toml b/Cargo.toml index 458bf6435..931c710f6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -53,7 +53,6 @@ cld = "0.5" derive_more = "0.99.17" es-version = { git = "https://github.com/EspressoSystems/es-version.git", branch = "main" } dotenvy = "0.15" -dyn-clone = "1.0" ethers = { version = "2.0", features = ["solc"] } futures = "0.3" diff --git a/sequencer/Cargo.toml b/sequencer/Cargo.toml index 3f39749b4..2ed8bcbac 100644 --- a/sequencer/Cargo.toml +++ b/sequencer/Cargo.toml @@ -53,7 +53,6 @@ csv = "1" derivative = "2.2" derive_more = { workspace = true } dotenvy = { workspace = true } -dyn-clone = { workspace = true } espresso-types = { path = "../types", features = ["testing"] } ethers = { workspace = true } futures = { workspace = true } diff --git a/types/Cargo.toml b/types/Cargo.toml index e044ddd93..ca135af96 100644 --- a/types/Cargo.toml +++ b/types/Cargo.toml @@ -23,7 +23,6 @@ cld = { workspace = true } committable = { workspace = true } contract-bindings = { path = "../contract-bindings" } derive_more = { workspace = true } -dyn-clone = { workspace = true } ethers = { workspace = true } fluent-asserter = "0.1.9" futures = { workspace = true } diff --git a/types/src/v0/traits.rs b/types/src/v0/traits.rs index 590ef827d..7bfb713a0 100644 --- a/types/src/v0/traits.rs +++ b/types/src/v0/traits.rs @@ -5,7 +5,6 @@ use std::{cmp::max, collections::BTreeMap, fmt::Debug, ops::Range, sync::Arc}; use anyhow::{bail, ensure, Context}; use async_trait::async_trait; use committable::Commitment; -use dyn_clone::DynClone; use futures::{FutureExt, TryFutureExt}; use hotshot::{types::EventType, HotShotInitializer}; use hotshot_types::{ @@ -615,16 +614,13 @@ pub trait SequencerPersistence: Sized + Send + Sync + 'static { } #[async_trait] -pub trait EventConsumer: Debug + DynClone + Send + Sync { +pub trait EventConsumer: Debug + Send + Sync { async fn handle_event(&self, event: &Event) -> anyhow::Result<()>; } -dyn_clone::clone_trait_object!(EventConsumer); - #[async_trait] impl EventConsumer for Box where - Self: Clone, T: EventConsumer + ?Sized, { async fn handle_event(&self, event: &Event) -> anyhow::Result<()> {