From 04d95f7234b83c4a512d1e29b945c729f08c1150 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Tue, 29 Nov 2022 21:34:42 +0000 Subject: [PATCH] allow unused imports for now --- web3_proxy/src/rpcs/connection.rs | 1 + web3_proxy/src/rpcs/connections.rs | 2 ++ web3_proxy/src/user_queries.rs | 1 - 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/web3_proxy/src/rpcs/connection.rs b/web3_proxy/src/rpcs/connection.rs index 42c3dd47..96b9272d 100644 --- a/web3_proxy/src/rpcs/connection.rs +++ b/web3_proxy/src/rpcs/connection.rs @@ -997,6 +997,7 @@ impl fmt::Display for Web3Connection { } mod tests { + #![allow(unused_imports)] use super::*; #[test] diff --git a/web3_proxy/src/rpcs/connections.rs b/web3_proxy/src/rpcs/connections.rs index f00431c4..4eef8886 100644 --- a/web3_proxy/src/rpcs/connections.rs +++ b/web3_proxy/src/rpcs/connections.rs @@ -846,6 +846,8 @@ impl Serialize for Web3Connections { } mod tests { + #![allow(unused_imports)] + // TODO: why is this allow needed? does tokio::test get in the way somehow? use super::*; use crate::rpcs::{blockchain::BlockId, provider::Web3Provider}; use ethers::types::Block; diff --git a/web3_proxy/src/user_queries.rs b/web3_proxy/src/user_queries.rs index a59a8dd2..f7bc896b 100644 --- a/web3_proxy/src/user_queries.rs +++ b/web3_proxy/src/user_queries.rs @@ -9,7 +9,6 @@ use chrono::NaiveDateTime; use entities::{rpc_accounting, rpc_key}; use hashbrown::HashMap; use http::StatusCode; -use log::warn; use migration::sea_orm::{ ColumnTrait, EntityTrait, PaginatorTrait, QueryFilter, QueryOrder, QuerySelect, Select, };