From b9bb79b4dce12d10678d239804c2bf0d918053d4 Mon Sep 17 00:00:00 2001 From: huzibaca Date: Thu, 14 Nov 2024 03:16:32 +0800 Subject: [PATCH] fix: call parameter error --- src-tauri/src/core/backup.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/core/backup.rs b/src-tauri/src/core/backup.rs index f5e5d76..42b0f7b 100644 --- a/src-tauri/src/core/backup.rs +++ b/src-tauri/src/core/backup.rs @@ -84,7 +84,7 @@ impl WebDavClient { pub async fn download(&self, filename: String, storage_path: PathBuf) -> Result<(), Error> { let client = self.get_client().await?; let path = format!("{}/{}", dirs::BACKUP_DIR, filename); - let response = client.get(&path.as_str()).await?; + let response = client.get(path.as_str()).await?; let content = response.bytes().await?; fs::write(&storage_path, &content)?; Ok(())