diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 5d56faf..292fe49 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,2 +1,2 @@ [toolchain] -channel = "nightly" +channel = "stable" diff --git a/src/bin/claim_rewards.rs b/src/bin/claim_rewards.rs index ae97992..5f0bb83 100644 --- a/src/bin/claim_rewards.rs +++ b/src/bin/claim_rewards.rs @@ -19,10 +19,10 @@ async fn main() { match response { ExchangeResponseStatus::Ok(exchange_response) => { - info!("Rewards claimed successfully: {:?}", exchange_response); + info!("Rewards claimed successfully: {exchange_response:?}"); } ExchangeResponseStatus::Err(e) => { - info!("Failed to claim rewards: {}", e); + info!("Failed to claim rewards: {e}"); } } } diff --git a/src/bin/order_and_schedule_cancel.rs b/src/bin/order_and_schedule_cancel.rs index 2a336b0..090d183 100644 --- a/src/bin/order_and_schedule_cancel.rs +++ b/src/bin/order_and_schedule_cancel.rs @@ -62,6 +62,6 @@ async fn main() { .schedule_cancel(Some(cancel_time), None) .await .unwrap(); - info!("schedule_cancel response: {:?}", response); + info!("schedule_cancel response: {response:?}"); sleep(Duration::from_secs(20)); } diff --git a/src/info/info_client.rs b/src/info/info_client.rs index 4b109f9..b3d8ba2 100644 --- a/src/info/info_client.rs +++ b/src/info/info_client.rs @@ -7,8 +7,9 @@ use tokio::sync::mpsc::UnboundedSender; use crate::{ info::{ - CandlesSnapshotResponse, FundingHistoryResponse, L2SnapshotResponse, OpenOrdersResponse, - OrderInfo, RecentTradesResponse, UserFillsResponse, UserStateResponse, ActiveAssetDataResponse, + ActiveAssetDataResponse, CandlesSnapshotResponse, FundingHistoryResponse, + L2SnapshotResponse, OpenOrdersResponse, OrderInfo, RecentTradesResponse, UserFillsResponse, + UserStateResponse, }, meta::{AssetContext, Meta, SpotMeta, SpotMetaAndAssetCtxs}, prelude::*, @@ -311,7 +312,11 @@ impl InfoClient { self.send_info_request(input).await } - pub async fn active_asset_data(&self, user: Address, coin: String) -> Result { + pub async fn active_asset_data( + &self, + user: Address, + coin: String, + ) -> Result { let input = InfoRequest::ActiveAssetData { user, coin }; self.send_info_request(input).await }