Skip to content

Commit 802f9fe

Browse files
committed
fix: 修复编译32位时FilePusher重复导入的问题
1 parent 7478596 commit 802f9fe

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/commands/download.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ use crate::{
33
space::check_free_space, utils::confirm::confirm,
44
};
55
use color_eyre::eyre::Result;
6-
#[cfg(not(target_pointer_width = "64"))]
7-
use fast_down::file::FilePusher;
86
#[cfg(target_pointer_width = "64")]
97
use fast_down::file::MmapFilePusher;
108
use fast_down::{
@@ -195,7 +193,7 @@ pub async fn download(mut args: DownloadArgs) -> Result<()> {
195193
.write(true)
196194
.read(true)
197195
.truncate(false)
198-
.open(&temp_path)
196+
.open(&save_path)
199197
.await?;
200198
FilePusher::new(file, info.size, args.write_buffer_size).await?
201199
};

0 commit comments

Comments
 (0)