🎨 Format update
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
use crate::util::{check_file_or_append, get_download_message, MessageType, show_toast};
|
use crate::util::{check_file_or_append, get_download_message, show_toast, MessageType};
|
||||||
use tauri::{api, command, AppHandle, Manager, Window};
|
|
||||||
use tauri::api::http::{ClientBuilder, HttpRequestBuilder, ResponseType};
|
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
|
use tauri::api::http::{ClientBuilder, HttpRequestBuilder, ResponseType};
|
||||||
|
use tauri::{api, command, AppHandle, Manager, Window};
|
||||||
|
|
||||||
#[derive(serde::Deserialize)]
|
#[derive(serde::Deserialize)]
|
||||||
pub struct DownloadFileParams {
|
pub struct DownloadFileParams {
|
||||||
@@ -27,7 +27,6 @@ pub async fn download_file(app: AppHandle, params: DownloadFileParams) -> Result
|
|||||||
)
|
)
|
||||||
.await;
|
.await;
|
||||||
|
|
||||||
|
|
||||||
match response {
|
match response {
|
||||||
Ok(res) => {
|
Ok(res) => {
|
||||||
let bytes = res.bytes().await.unwrap().data;
|
let bytes = res.bytes().await.unwrap().data;
|
||||||
|
|||||||
Reference in New Issue
Block a user