From ed27467d16b94dd7b3816bec7cf02473af7fb8c6 Mon Sep 17 00:00:00 2001 From: amtoaer Date: Tue, 19 Mar 2024 00:07:23 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=9A=84=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/downloader.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/downloader.rs b/src/downloader.rs index 801611b..2b0607b 100644 --- a/src/downloader.rs +++ b/src/downloader.rs @@ -19,7 +19,6 @@ impl Downloader { if let Some(parent) = path.parent() { fs::create_dir_all(parent).await?; } - // must be a new file let mut file = File::create(path).await?; let mut res = self.client.get(url).send().await?.bytes_stream(); while let Some(item) = res.next().await {