diff --git a/ethers-contract/ethers-contract-abigen/src/multi.rs b/ethers-contract/ethers-contract-abigen/src/multi.rs index 10c3e3c9..f0dab653 100644 --- a/ethers-contract/ethers-contract-abigen/src/multi.rs +++ b/ethers-contract/ethers-contract-abigen/src/multi.rs @@ -8,7 +8,7 @@ use std::{ collections::{BTreeMap, BTreeSet, HashMap, HashSet}, fs, io::Write, - path::{Path, PathBuf}, + path::Path, }; use toml::Value; diff --git a/examples/paginated_logs.rs b/examples/paginated_logs.rs index 0a58a9b8..573175c3 100644 --- a/examples/paginated_logs.rs +++ b/examples/paginated_logs.rs @@ -12,9 +12,8 @@ async fn main() -> Result<()> { let last_block = client.get_block(BlockNumber::Latest).await?.unwrap().number.unwrap(); println!("last_block: {last_block}"); - let erc20_transfer_filter = Filter::new() - .from_block(last_block - 10000) - .event("Transfer(address,address,uint256)"); + let erc20_transfer_filter = + Filter::new().from_block(last_block - 10000).event("Transfer(address,address,uint256)"); let mut stream = client.get_logs_paginated(&erc20_transfer_filter, 10); diff --git a/examples/subscribe_logs.rs b/examples/subscribe_logs.rs index c35cd62a..9cd57e98 100644 --- a/examples/subscribe_logs.rs +++ b/examples/subscribe_logs.rs @@ -14,9 +14,8 @@ async fn main() -> Result<()> { let last_block = client.get_block(BlockNumber::Latest).await?.unwrap().number.unwrap(); println!("last_block: {last_block}"); - let erc20_transfer_filter = Filter::new() - .from_block(last_block - 25) - .event("Transfer(address,address,uint256)"); + let erc20_transfer_filter = + Filter::new().from_block(last_block - 25).event("Transfer(address,address,uint256)"); let mut stream = client.subscribe_logs(&erc20_transfer_filter).await?;