From 2abd71edf86193892f43a6fc89ab866905f3e4ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominykas=20Dja=C4=8Denko?= Date: Mon, 19 Feb 2024 10:59:14 -0800 Subject: [PATCH] fix: editing will parse response correctly (#107) * fix: editing will parse response correctly * Fix clippy --- src/api/rest/gateway.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/rest/gateway.rs b/src/api/rest/gateway.rs index adc7d2a..14e6622 100644 --- a/src/api/rest/gateway.rs +++ b/src/api/rest/gateway.rs @@ -282,7 +282,7 @@ impl Gateway { /// Same as [`Gateway::post`], but doesn't require content to be set for the POST request. async fn post_empty(&self, path: &str, content: &T) -> Result<()> { - self.post::<_, String>(path, content).await?; + self.post::<_, Task>(path, content).await?; Ok(()) } }