docs(hive-forge): add # Errors to put_no_content (argus review)

This commit is contained in:
atlas 2026-06-14 22:04:01 +02:00 committed by mara
commit c7ffe9336b

View file

@ -210,6 +210,12 @@ impl Client {
/// `204 No Content` (empty body), so there is nothing to decode.
/// Used by `repo-add-collaborator` (Forgejo's add-collaborator PUT
/// answers 204 on success).
///
/// # Errors
///
/// Returns an error if the request fails to send (transport/network
/// error) or the server responds with a non-2xx status (the response
/// body is included in the error).
pub fn put_no_content<B: Serialize>(&self, path: &str, body: &B) -> Result<()> {
let url = format!("{}{}", self.api(), path);
let resp = self