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 }