fix: remove redundant rebindings for clippy
This commit is contained in:
1 parent
5914e68b69
commit
f0c0051a1f
1 file changed
-2
@@ -127,7 +127,6 @@ async fn download_mod_files(
|
|||||||
.unwrap_or(&file.path)
|
.unwrap_or(&file.path)
|
||||||
.to_string();
|
.to_string();
|
||||||
let completed = completed.clone();
|
let completed = completed.clone();
|
||||||
let total = total;
|
|
||||||
tasks.spawn(async move {
|
tasks.spawn(async move {
|
||||||
if let Some(parent) = dest.parent() {
|
if let Some(parent) = dest.parent() {
|
||||||
let _ = tokio::fs::create_dir_all(parent).await;
|
let _ = tokio::fs::create_dir_all(parent).await;
|
||||||
@@ -157,7 +156,6 @@ async fn download_mod_files(
|
|||||||
.unwrap_or(&file.path)
|
.unwrap_or(&file.path)
|
||||||
.to_string();
|
.to_string();
|
||||||
let completed = completed.clone();
|
let completed = completed.clone();
|
||||||
let total = total;
|
|
||||||
tasks.spawn(async move {
|
tasks.spawn(async move {
|
||||||
if let Some(parent) = dest.parent() {
|
if let Some(parent) = dest.parent() {
|
||||||
let _ = tokio::fs::create_dir_all(parent).await;
|
let _ = tokio::fs::create_dir_all(parent).await;
|
||||||
|
|||||||
Reference in new issue
Block a user