From 2c2f173b7d78ac2ff4e368d05bc80daa9e46ab34 Mon Sep 17 00:00:00 2001 From: Roei Erez Date: Thu, 14 Dec 2023 11:57:48 +0200 Subject: [PATCH] fix rust --- snippets/rust/src/webhook.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/rust/src/webhook.rs b/snippets/rust/src/webhook.rs index d92eaac..a055e58 100644 --- a/snippets/rust/src/webhook.rs +++ b/snippets/rust/src/webhook.rs @@ -4,7 +4,7 @@ use breez_sdk_core::*; async fn webhook(sdk: Arc) -> Result<()> { // ANCHOR: register-webook - sdk.register_webhook("https://yourapplication.com").await?; + sdk.register_webhook("https://yourapplication.com".to_string()).await?; // ANCHOR_END: register-webook Ok(()) @@ -12,7 +12,7 @@ async fn webhook(sdk: Arc) -> Result<()> { async fn payment_webhook(sdk: Arc) -> Result<()> { // ANCHOR: register-payment-webook - sdk.register_webhook("https://your-nds-service.com/notify?platform=ios&token=").await?; + sdk.register_webhook("https://your-nds-service.com/notify?platform=ios&token=".to_string()).await?; // ANCHOR_END: register-payment-webook Ok(())