Skip to content

Commit b40c896

Browse files
committed
format
1 parent fec55c6 commit b40c896

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

examples/historical_scanning/main.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
use std::{sync::Arc, time::Duration};
22

3-
use alloy::providers::ProviderBuilder;
4-
use alloy::rpc::types::Log;
5-
use alloy::sol;
6-
use alloy::sol_types::SolEvent;
3+
use alloy::{providers::ProviderBuilder, rpc::types::Log, sol, sol_types::SolEvent};
74
use alloy_node_bindings::Anvil;
85
use async_trait::async_trait;
96
use event_scanner::{CallbackConfig, EventCallback, EventFilter, ScannerBuilder};

examples/simple_counter/main.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
use std::{sync::Arc, time::Duration};
22

3-
use alloy::providers::ProviderBuilder;
4-
use alloy::rpc::types::Log;
5-
use alloy::sol;
6-
use alloy::sol_types::SolEvent;
3+
use alloy::{providers::ProviderBuilder, rpc::types::Log, sol, sol_types::SolEvent};
74
use alloy_node_bindings::Anvil;
85
use async_trait::async_trait;
96
use event_scanner::{CallbackConfig, EventCallback, EventFilter, ScannerBuilder};

src/lib.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ pub mod callback;
33
pub mod scanner;
44
pub mod types;
55

6-
pub use crate::builder::ScannerBuilder;
7-
pub use crate::callback::EventCallback;
8-
pub use crate::scanner::Scanner;
9-
pub use crate::types::{CallbackConfig, EventFilter};
6+
pub use crate::{
7+
builder::ScannerBuilder,
8+
callback::EventCallback,
9+
scanner::Scanner,
10+
types::{CallbackConfig, EventFilter},
11+
};

0 commit comments

Comments
 (0)