🎨 Format update

This commit is contained in:
Tw93
2023-07-20 18:35:30 +08:00
parent 950cdaac94
commit 32822f9b69

View File

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