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(())