From 2838d1c7e47260c1027f777296e8c9c6e1b3e175 Mon Sep 17 00:00:00 2001 From: Dominykas Djacenko Date: Mon, 19 Feb 2024 10:54:57 -0800 Subject: [PATCH] fix: editing will parse response correctly --- src/api/rest/gateway.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/rest/gateway.rs b/src/api/rest/gateway.rs index adc7d2a..55e7c87 100644 --- a/src/api/rest/gateway.rs +++ b/src/api/rest/gateway.rs @@ -1,4 +1,4 @@ -use std::time::Duration; +use std::{collections::HashMap, time::Duration}; use chrono::Utc; use color_eyre::{ @@ -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(()) } }