Skip to content

Commit

Permalink
remove unnecessary derives
Browse files Browse the repository at this point in the history
  • Loading branch information
aditiharini committed Dec 19, 2024
1 parent 79fbe0b commit 44be420
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/connectors/onchain_events/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ pub enum SubscribeError {
UnableToFindBlockByHash,
}

#[derive(Clone, Debug)]
#[derive(Debug)]
pub enum SignerEvent {
Add {
key: Bytes,
Expand All @@ -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,
Expand All @@ -122,7 +122,7 @@ pub enum IdRegisterEvent {
},
}

#[derive(Clone, Debug)]
#[derive(Debug)]
pub struct StorageRentEvent {
#[allow(dead_code)] // TODO
payer: Address,
Expand All @@ -134,15 +134,15 @@ pub struct StorageRentEvent {
expiry: u64,
}

#[derive(Clone, Debug)]
#[derive(Debug)]
pub enum EventType {
Signer(SignerEvent),
SignerMigrated { migrated_at: u64 },
IdRegister(IdRegisterEvent),
StorageRent(StorageRentEvent),
}

#[derive(Clone, Debug)]
#[derive(Debug)]
pub struct Event {
#[allow(dead_code)] // TODO
chain_id: u64,
Expand Down Expand Up @@ -201,7 +201,6 @@ impl L1Client for RealL1Client {
}
}

#[derive(Clone)]
pub struct Subscriber {
provider: RootProvider<Http<Client>>,
onchain_events_by_block: HashMap<u64, Vec<Event>>,
Expand Down

0 comments on commit 44be420

Please sign in to comment.