From d8f5ba5f6363e65293e368dc05eb61a404e43237 Mon Sep 17 00:00:00 2001 From: ngutech21 Date: Mon, 18 Sep 2023 19:48:41 +0200 Subject: [PATCH] fix: clippy --- moksha-mint/src/strike.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/moksha-mint/src/strike.rs b/moksha-mint/src/strike.rs index c07fae25..a4842f49 100644 --- a/moksha-mint/src/strike.rs +++ b/moksha-mint/src/strike.rs @@ -171,13 +171,15 @@ impl StrikeClient { } pub async fn create_ln_payment_quote(&self, bolt11: &str) -> Result { - let endpoint = format!("v1/payment-quotes/lightning"); let params = serde_json::json!({ "lnInvoice": bolt11, "sourceCurrency": "BTC", }); let body = self - .make_post(&endpoint, &serde_json::to_string(¶ms)?) + .make_post( + "v1/payment-quotes/lightning", + &serde_json::to_string(¶ms)?, + ) .await?; let response: serde_json::Value = serde_json::from_str(&body)?; let payment_quote_id = response["paymentQuoteId"]