Skip to content

Commit 886c64f

Browse files
committed
cargo fmt
1 parent 8320e6b commit 886c64f

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

async-openai/src/group_roles.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
use crate::{
22
config::Config,
33
error::OpenAIError,
4-
types::admin::groups::{
5-
GroupRoleAssignment, PublicAssignOrganizationGroupRoleBody,
6-
},
4+
types::admin::groups::{GroupRoleAssignment, PublicAssignOrganizationGroupRoleBody},
75
types::admin::roles::{DeletedRoleAssignmentResource, RoleListResource},
86
Client, RequestOptions,
97
};
@@ -52,7 +50,10 @@ impl<'c, C: Config> GroupRoles<'c, C> {
5250

5351
/// Unassigns a role from a group.
5452
#[crate::byot(T0 = std::fmt::Display, R = serde::de::DeserializeOwned)]
55-
pub async fn unassign(&self, role_id: &str) -> Result<DeletedRoleAssignmentResource, OpenAIError> {
53+
pub async fn unassign(
54+
&self,
55+
role_id: &str,
56+
) -> Result<DeletedRoleAssignmentResource, OpenAIError> {
5657
self.client
5758
.delete(
5859
format!("/organization/groups/{}/roles/{}", self.group_id, role_id).as_str(),
@@ -61,4 +62,3 @@ impl<'c, C: Config> GroupRoles<'c, C> {
6162
.await
6263
}
6364
}
64-

async-openai/src/types/admin/users.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
use crate::types::admin::roles::Role;
12
use crate::types::OpenAIError;
23
use crate::types::OrganizationRole;
3-
use crate::types::admin::roles::Role;
44
use derive_builder::Builder;
55
use serde::{Deserialize, Serialize};
66

async-openai/src/user_roles.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ impl<'c, C: Config> UserRoles<'c, C> {
5050

5151
/// Unassigns a role from a user.
5252
#[crate::byot(T0 = std::fmt::Display, R = serde::de::DeserializeOwned)]
53-
pub async fn unassign(&self, role_id: &str) -> Result<DeletedRoleAssignmentResource, OpenAIError> {
53+
pub async fn unassign(
54+
&self,
55+
role_id: &str,
56+
) -> Result<DeletedRoleAssignmentResource, OpenAIError> {
5457
self.client
5558
.delete(
5659
format!("/organization/users/{}/roles/{}", self.user_id, role_id).as_str(),
@@ -59,4 +62,3 @@ impl<'c, C: Config> UserRoles<'c, C> {
5962
.await
6063
}
6164
}
62-

0 commit comments

Comments
 (0)