From 4ce372e57b805bf45e1bc0bbf19635e3e727069d Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Thu, 20 Apr 2023 10:38:10 -0700 Subject: [PATCH] lint --- web3_proxy/src/http_params.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web3_proxy/src/http_params.rs b/web3_proxy/src/http_params.rs index ddbccdfc..bd6f47e2 100644 --- a/web3_proxy/src/http_params.rs +++ b/web3_proxy/src/http_params.rs @@ -9,7 +9,7 @@ use axum::{ use chrono::{NaiveDateTime, Utc}; use entities::login; use hashbrown::HashMap; -use log::{debug, trace, warn}; +use log::{debug, warn}; use migration::sea_orm::{ColumnTrait, DatabaseConnection, EntityTrait, QueryFilter}; use redis_rate_limiter::{redis::AsyncCommands, RedisConnection}; @@ -223,7 +223,7 @@ pub fn get_query_window_seconds_from_params( }, |query_window_seconds: &String| { // parse the given timestamp - query_window_seconds.parse::().map_err(|err| { + query_window_seconds.parse::().map_err(|_| { Web3ProxyError::BadRequest("Unable to parse query_window_seconds".to_string()) }) },