summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCyborus <cyborus@cyborus.xyz>2023-12-12 20:02:44 +0100
committerCyborus <cyborus@cyborus.xyz>2023-12-12 20:02:44 +0100
commitd3f75f67eed0fb6724edcc3ea67dce24138afb97 (patch)
tree9d00853359eeab61bc5c8cb2caa9ae23943b5acd /src
parent`PublicKey.read_only` is optional (diff)
downloadforgejo-api-d3f75f67eed0fb6724edcc3ea67dce24138afb97.tar.xz
forgejo-api-d3f75f67eed0fb6724edcc3ea67dce24138afb97.zip
renaming user should call `post_unit`
Diffstat (limited to 'src')
-rw-r--r--src/admin.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/admin.rs b/src/admin.rs
index f6c5977..d52cf11 100644
--- a/src/admin.rs
+++ b/src/admin.rs
@@ -124,7 +124,7 @@ impl Forgejo {
user: &str,
opt: RenameUserOption,
) -> Result<(), ForgejoError> {
- self.post(&format!("admin/users/{user}/rename"), &opt).await
+ self.post_unit(&format!("admin/users/{user}/rename"), &opt).await
}
pub async fn admin_create_repo(