From 74bf6fbb04464ada305abd5d747e70c0597c83f8 Mon Sep 17 00:00:00 2001 From: Georgios Konstantopoulos Date: Tue, 15 Nov 2022 13:00:40 -0800 Subject: [PATCH] chore: fmt / clippy --- ethers-contract/ethers-contract-abigen/src/multi.rs | 2 +- examples/paginated_logs.rs | 5 ++--- examples/subscribe_logs.rs | 5 ++--- 3 files changed, 5 insertions(+), 7 deletions(-) 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?;