From 44be4209a6515c693e962b794d930f242015c205 Mon Sep 17 00:00:00 2001 From: Aditi Srinivasan Date: Wed, 18 Dec 2024 22:12:03 -0500 Subject: [PATCH] remove unnecessary derives --- src/connectors/onchain_events/mod.rs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/connectors/onchain_events/mod.rs b/src/connectors/onchain_events/mod.rs index f0392a8..3d21897 100644 --- a/src/connectors/onchain_events/mod.rs +++ b/src/connectors/onchain_events/mod.rs @@ -85,7 +85,7 @@ pub enum SubscribeError { UnableToFindBlockByHash, } -#[derive(Clone, Debug)] +#[derive(Debug)] pub enum SignerEvent { Add { key: Bytes, @@ -101,13 +101,13 @@ pub enum SignerEvent { }, } -#[derive(Clone, Debug)] +#[derive(Debug)] pub struct SignerMigratedEvent { #[allow(dead_code)] // TODO migrated_at: u64, } -#[derive(Clone, Debug)] +#[derive(Debug)] pub enum IdRegisterEvent { Register { to: Address, @@ -122,7 +122,7 @@ pub enum IdRegisterEvent { }, } -#[derive(Clone, Debug)] +#[derive(Debug)] pub struct StorageRentEvent { #[allow(dead_code)] // TODO payer: Address, @@ -134,7 +134,7 @@ pub struct StorageRentEvent { expiry: u64, } -#[derive(Clone, Debug)] +#[derive(Debug)] pub enum EventType { Signer(SignerEvent), SignerMigrated { migrated_at: u64 }, @@ -142,7 +142,7 @@ pub enum EventType { StorageRent(StorageRentEvent), } -#[derive(Clone, Debug)] +#[derive(Debug)] pub struct Event { #[allow(dead_code)] // TODO chain_id: u64, @@ -201,7 +201,6 @@ impl L1Client for RealL1Client { } } -#[derive(Clone)] pub struct Subscriber { provider: RootProvider>, onchain_events_by_block: HashMap>,