diff options
author | Cyborus <cyborus@cyborus.xyz> | 2023-12-12 20:02:44 +0100 |
---|---|---|
committer | Cyborus <cyborus@cyborus.xyz> | 2023-12-12 20:02:44 +0100 |
commit | d3f75f67eed0fb6724edcc3ea67dce24138afb97 (patch) | |
tree | 9d00853359eeab61bc5c8cb2caa9ae23943b5acd /src | |
parent | `PublicKey.read_only` is optional (diff) | |
download | forgejo-api-d3f75f67eed0fb6724edcc3ea67dce24138afb97.tar.xz forgejo-api-d3f75f67eed0fb6724edcc3ea67dce24138afb97.zip |
renaming user should call `post_unit`
Diffstat (limited to 'src')
-rw-r--r-- | src/admin.rs | 2 |
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( |