Skip to content

Commit 185b63e

Browse files
authored
clippy: remove unnecessary var
1 parent 70973bc commit 185b63e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/blockdir.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,10 +360,7 @@ pub(crate) async fn list_blocks(transport: &Transport) -> Result<HashSet<BlockHa
360360
let mut subdir_tasks = JoinSet::new();
361361
for subdir_name in subdirs {
362362
let transport = transport.clone();
363-
subdir_tasks.spawn(async move {
364-
let r = transport.list_dir(&subdir_name).await;
365-
r
366-
});
363+
subdir_tasks.spawn(async move { transport.list_dir(&subdir_name).await });
367364
}
368365
let mut blocks = HashSet::new();
369366
while let Some(result) = subdir_tasks.join_next().await {

0 commit comments

Comments
 (0)