From 512bcf305b8b6a5489ad61fff2bc86f9f6c293ce Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Fri, 7 Jul 2023 14:06:35 -0700 Subject: [PATCH] lint --- web3_proxy/src/block_number.rs | 2 +- web3_proxy/src/frontend/users/payment_stripe.rs | 4 +--- web3_proxy/tests/common/get_admin_deposits.rs | 3 --- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/web3_proxy/src/block_number.rs b/web3_proxy/src/block_number.rs index 0a5f73e6..41e93cd0 100644 --- a/web3_proxy/src/block_number.rs +++ b/web3_proxy/src/block_number.rs @@ -11,7 +11,7 @@ use ethers::{ }; use serde_json::json; use std::sync::Arc; -use tracing::{error, trace, warn}; +use tracing::{trace, warn}; use crate::{frontend::authorization::Authorization, rpcs::many::Web3Rpcs}; diff --git a/web3_proxy/src/frontend/users/payment_stripe.rs b/web3_proxy/src/frontend/users/payment_stripe.rs index 58b77c61..df3c1eee 100644 --- a/web3_proxy/src/frontend/users/payment_stripe.rs +++ b/web3_proxy/src/frontend/users/payment_stripe.rs @@ -7,9 +7,7 @@ use axum::{ Extension, Json, TypedHeader, }; use axum_macros::debug_handler; -use entities::{ - balance, increase_on_chain_balance_receipt, rpc_key, stripe_increase_balance_receipt, user, -}; +use entities::{balance, rpc_key, stripe_increase_balance_receipt, user}; use ethers::types::Address; use http::HeaderMap; use migration::sea_orm::prelude::Decimal; diff --git a/web3_proxy/tests/common/get_admin_deposits.rs b/web3_proxy/tests/common/get_admin_deposits.rs index a4b91b82..e835f889 100644 --- a/web3_proxy/tests/common/get_admin_deposits.rs +++ b/web3_proxy/tests/common/get_admin_deposits.rs @@ -1,8 +1,5 @@ use crate::TestApp; -use ethers::prelude::{LocalWallet, Signer}; -use rust_decimal::Decimal; use tracing::info; -use web3_proxy::frontend::admin::AdminIncreaseBalancePost; use web3_proxy::frontend::users::authentication::LoginPostResponse; /// Helper function to increase the balance of a user, from an admin