summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorCyborus <cyborus@cyborus.xyz>2023-12-11 21:30:08 +0100
committerCyborus <cyborus@cyborus.xyz>2023-12-11 21:52:45 +0100
commit02e6eb6c601444aca263872a10ced0a266f4164d (patch)
tree3e37a4fa9591d5898e3d7c8259401f46b730b52e /src/lib.rs
parentfix release attachments (diff)
downloadforgejo-api-02e6eb6c601444aca263872a10ced0a266f4164d.tar.xz
forgejo-api-02e6eb6c601444aca263872a10ced0a266f4164d.zip
deletions do not return bodies
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index d133868..bb0bd74 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -147,7 +147,7 @@ impl Forgejo {
async fn delete(&self, path: &str) -> Result<(), ForgejoError> {
let url = self.url.join("api/v1/").unwrap().join(path).unwrap();
let request = self.client.delete(url).build()?;
- self.execute(request).await
+ self.execute_unit(request).await
}
async fn patch<T: Serialize, U: DeserializeOwned>(