🎨 Format update

This commit is contained in:
Tw93
2023-07-20 18:20:03 +08:00
parent 22039818d3
commit 950cdaac94

View File

@@ -19,11 +19,14 @@ pub async fn download_file(app: AppHandle, params: DownloadFileParams) -> Result
let file_path = check_file_or_append(output_path.to_str().unwrap()); let file_path = check_file_or_append(output_path.to_str().unwrap());
let client = ClientBuilder::new().build().unwrap(); let client = ClientBuilder::new().build().unwrap();
let response = client.send( let response = client
HttpRequestBuilder::new("GET", &params.url) .send(
.unwrap() HttpRequestBuilder::new("GET", &params.url)
.response_type(ResponseType::Binary) .unwrap()
).await; .response_type(ResponseType::Binary),
)
.await;
match response { match response {
Ok(res) => { Ok(res) => {