Skip to content

Commit 319b092

Browse files
committed
cargo fmt
1 parent 8a98c41 commit 319b092

File tree

5 files changed

+10
-13
lines changed

5 files changed

+10
-13
lines changed

async-openai/src/admin.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
use crate::{
2-
admin_api_keys::AdminAPIKeys,
3-
audit_logs::AuditLogs,
4-
certificates::Certificates,
5-
config::Config,
6-
invites::Invites,
7-
projects::Projects,
8-
users::Users,
9-
Client,
2+
admin_api_keys::AdminAPIKeys, audit_logs::AuditLogs, certificates::Certificates,
3+
config::Config, invites::Invites, projects::Projects, users::Users, Client,
104
};
115

126
/// Admin group for all administration APIs.
@@ -50,4 +44,3 @@ impl<'c, C: Config> Admin<'c, C> {
5044
Certificates::new(self.client)
5145
}
5246
}
53-

async-openai/src/file.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ impl<'c, C: Config> Files<'c, C> {
6161

6262
/// Returns the contents of the specified file
6363
pub async fn content(&self, file_id: &str) -> Result<Bytes, OpenAIError> {
64-
let (bytes, _headers) = self.client
64+
let (bytes, _headers) = self
65+
.client
6566
.get_raw(format!("/files/{file_id}/content").as_str())
6667
.await?;
6768
Ok(bytes)

async-openai/src/transcriptions.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ impl<'c, C: Config> Transcriptions<'c, C> {
9898
&self,
9999
request: CreateTranscriptionRequest,
100100
) -> Result<Bytes, OpenAIError> {
101-
let (bytes, _headers) = self.client
101+
let (bytes, _headers) = self
102+
.client
102103
.post_form_raw("/audio/transcriptions", request)
103104
.await?;
104105
Ok(bytes)

async-openai/src/translations.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ impl<'c, C: Config> Translations<'c, C> {
5050
&self,
5151
request: CreateTranslationRequest,
5252
) -> Result<Bytes, OpenAIError> {
53-
let (bytes, _headers) = self.client
53+
let (bytes, _headers) = self
54+
.client
5455
.post_form_raw("/audio/translations", request)
5556
.await?;
5657
Ok(bytes)

async-openai/src/video.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ impl<'c, C: Config> Videos<'c, C> {
7070
video_id: &str,
7171
variant: VideoVariant,
7272
) -> Result<Bytes, OpenAIError> {
73-
let (bytes, _headers) = self.client
73+
let (bytes, _headers) = self
74+
.client
7475
.get_raw_with_query(
7576
&format!("/videos/{video_id}/content"),
7677
&[("variant", variant)],

0 commit comments

Comments
 (0)