Skip to content

Commit 37971f9

Browse files
committed
clean up api signature
1 parent d40be47 commit 37971f9

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/api.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ impl ApiClient {
203203
}
204204
}
205205

206-
/// POST with a custom request body (for file uploads). Returns parsed response.
207-
pub fn post_body<T: DeserializeOwned, R: std::io::Read + Send + 'static>(
206+
/// POST with a custom request body (for file uploads). Returns raw status and body.
207+
pub fn post_body<R: std::io::Read + Send + 'static>(
208208
&self,
209209
path: &str,
210210
content_type: &str,

src/datasets.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ fn do_upload<R: std::io::Read + Send + 'static>(
117117
pb: ProgressBar,
118118
content_length: Option<u64>,
119119
) -> String {
120-
let (status, resp_body) = api.post_body::<serde_json::Value, _>("/files", content_type, reader, content_length);
120+
let (status, resp_body) = api.post_body("/files", content_type, reader, content_length);
121121

122122
pb.finish_and_clear();
123123

0 commit comments

Comments
 (0)