From 1a587528fb7ba43586f3ed91ec78a1c9cca32c42 Mon Sep 17 00:00:00 2001 From: Ben Luelo Date: Thu, 28 Sep 2023 04:58:31 -0400 Subject: [PATCH] chore: clippy --- lib/chain-utils/src/lib.rs | 1 - lib/chain-utils/src/union.rs | 2 -- voyager/src/chain/union.rs | 4 ++-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/chain-utils/src/lib.rs b/lib/chain-utils/src/lib.rs index ab8805281a..8d8540f7c5 100644 --- a/lib/chain-utils/src/lib.rs +++ b/lib/chain-utils/src/lib.rs @@ -11,7 +11,6 @@ use std::{ hash::Hash, }; -use chrono::{DateTime, Utc}; use futures::{Future, Stream}; use serde::{Deserialize, Serialize}; use unionlabs::{ diff --git a/lib/chain-utils/src/union.rs b/lib/chain-utils/src/union.rs index b7e3dc21d0..73532129ff 100644 --- a/lib/chain-utils/src/union.rs +++ b/lib/chain-utils/src/union.rs @@ -7,12 +7,10 @@ use protos::ibc::core::channel::v1::QueryPacketAcknowledgementRequest; use serde::{Deserialize, Serialize}; use sha2::Digest; use tendermint_rpc::{ - error::ResponseSubdetail, event::EventData, query::{Condition, EventType, Operand, Query}, Client, SubscriptionClient, WebSocketClient, WebSocketClientUrl, }; -use tokio::select; use unionlabs::{ ethereum::H256, events::{IbcEvent, TryFromTendermintEventError}, diff --git a/voyager/src/chain/union.rs b/voyager/src/chain/union.rs index 42bc01e18b..bf0f855b55 100644 --- a/voyager/src/chain/union.rs +++ b/voyager/src/chain/union.rs @@ -4,7 +4,6 @@ use std::{ marker::PhantomData, }; -use bitvec::vec::BitVec; use chain_utils::{ evm::Evm, union::{Union, Wasm}, @@ -13,7 +12,7 @@ use clap::Args; use frame_support_procedural::{CloneNoBound, DebugNoBound, PartialEqNoBound}; use frunk::{hlist_pat, HList}; use futures::Future; -use num_bigint::{BigInt, BigUint}; +use num_bigint::BigUint; use prost::Message; use protos::{ cosmos::{ @@ -1023,6 +1022,7 @@ where let a_tokens = a.tokens.parse::().unwrap(); let b_tokens = b.tokens.parse::().unwrap(); + #[allow(clippy::collapsible_else_if)] if a_tokens == b_tokens { let a_key = &a .consensus_pubkey