fix: error with clippy 1.65
This commit is contained in:
parent
a706eb172e
commit
f748b98ccc
1 changed files with 2 additions and 2 deletions
|
|
@ -150,7 +150,7 @@ async fn download_single_file<P: Into<PathBuf>>(
|
|||
let mut file = fs::OpenOptions::new()
|
||||
.append(true)
|
||||
.create(true)
|
||||
.open(output_path_tmp.to_owned())
|
||||
.open(&output_path_tmp)
|
||||
.await?;
|
||||
|
||||
if is_gvideo && size.is_some() {
|
||||
|
|
@ -159,7 +159,7 @@ async fn download_single_file<P: Into<PathBuf>>(
|
|||
download_chunks_by_header(http, &mut file, url, size, offset, pb).await?;
|
||||
}
|
||||
|
||||
fs::rename(output_path_tmp, output_path).await?;
|
||||
fs::rename(&output_path_tmp, &output_path).await?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue