From 9065e93512a9d2df33b0d7b67535a0225d575673 Mon Sep 17 00:00:00 2001 From: Antonio Morrone Date: Wed, 18 Oct 2023 13:13:13 +0200 Subject: [PATCH] style: apply fmt --- .../zksync_api/src/bin/providers/dev_price_provider.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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),