🎨 Format update
This commit is contained in:
@@ -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", ¶ms.url)
|
.send(
|
||||||
.unwrap()
|
HttpRequestBuilder::new("GET", ¶ms.url)
|
||||||
.response_type(ResponseType::Binary)
|
.unwrap()
|
||||||
).await;
|
.response_type(ResponseType::Binary),
|
||||||
|
)
|
||||||
|
.await;
|
||||||
|
|
||||||
|
|
||||||
match response {
|
match response {
|
||||||
Ok(res) => {
|
Ok(res) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user