Skip to content

Commit

Permalink
fix: editing will parse response correctly (#107)
Browse files Browse the repository at this point in the history
* fix: editing will parse response correctly

* Fix clippy
  • Loading branch information
chaosteil authored Feb 19, 2024
1 parent 30c1b52 commit 2abd71e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/rest/gateway.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T: Serialize>(&self, path: &str, content: &T) -> Result<()> {
self.post::<_, String>(path, content).await?;
self.post::<_, Task>(path, content).await?;
Ok(())
}
}
Expand Down

0 comments on commit 2abd71e

Please sign in to comment.