From 7c79d10c885227edd03cdc272aeb888ccc6e3516 Mon Sep 17 00:00:00 2001 From: Evan <0xIchigo@protonmail.com> Date: Mon, 6 May 2024 16:21:49 -0400 Subject: [PATCH] Formatting --- src/webhook.rs | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/webhook.rs b/src/webhook.rs index 55d4084..5162731 100644 --- a/src/webhook.rs +++ b/src/webhook.rs @@ -86,10 +86,7 @@ impl Helius { ); let parsed_url: Url = Url::parse(&url).expect("Failed to parse URL"); - self.rpc_client - .handler - .send(Method::GET, parsed_url, None::<&()>) - .await + self.rpc_client.handler.send(Method::GET, parsed_url, None::<&()>).await } /// Retrieves all Helius webhooks programmatically @@ -105,16 +102,14 @@ impl Helius { ); let parsed_url: Url = Url::parse(&url).expect("Failed to parse URL"); - self.rpc_client.handler - .send(Method::GET, parsed_url, None::<&()>) - .await + self.rpc_client.handler.send(Method::GET, parsed_url, None::<&()>).await } /// Deletes a given Helius webhook programmatically - /// + /// /// # Arguments /// * `webhook_id` - The ID of the webhook to be deleted - /// + /// /// # Returns /// A unit since there isn't any response pub async fn delete_webhook(&self, webhook_id: &str) -> Result<()> { @@ -124,7 +119,8 @@ impl Helius { ); let parsed_url: Url = Url::parse(&url).expect("Failed to parse URL"); - self.rpc_client.handler + self.rpc_client + .handler .send(Method::DELETE, parsed_url, None::<&()>) .await }