diff --git a/core/bin/zksync_api/src/bin/providers/dev_price_provider.rs b/core/bin/zksync_api/src/bin/providers/dev_price_provider.rs index 41c84b4ee..2cc26af25 100644 --- a/core/bin/zksync_api/src/bin/providers/dev_price_provider.rs +++ b/core/bin/zksync_api/src/bin/providers/dev_price_provider.rs @@ -5,7 +5,7 @@ use actix_web::{web, HttpRequest, HttpResponse, Result}; use bigdecimal::BigDecimal; -use chrono::{Utc, SecondsFormat}; +use chrono::{SecondsFormat, Utc}; use serde::{Deserialize, Serialize}; use serde_json::json; use std::{collections::HashMap, fs::read_to_string, path::Path}; @@ -89,7 +89,6 @@ async fn handle_coinmarketcap_token_price_query( Ok(HttpResponse::Ok().json(resp)) } - #[derive(Debug, Deserialize)] struct Token { pub address: Address, @@ -201,7 +200,10 @@ pub fn create_price_service(sloppy_mode: bool) -> actix_web::Scope { "/cryptocurrency/quotes/latest", web::get().to(handle_coinmarketcap_token_price_query), ) - .route(format!("{}/coins/list", API_PATH).as_str(), web::get().to(handle_coingecko_token_list)) + .route( + format!("{}/coins/list", API_PATH).as_str(), + web::get().to(handle_coingecko_token_list), + ) .route( format!("{}/coins/{{coin_id}}/market_chart", API_PATH).as_str(), web::get().to(handle_coingecko_token_price_query),