Skip to content

Commit dd0dc60

Browse files
committed
refactor: use future::ready over async block
1 parent fd25d67 commit dd0dc60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ impl<C: NetworkBehaviour<ToSwarm = Infallible> + Send> UninitializedIpfs<C> {
10161016
ipfs.repo
10171017
.list_pins(None)
10181018
.await
1019-
.filter_map(|result| async move { result.map(|(cid, _)| cid).ok() })
1019+
.filter_map(|result| futures::future::ready(result.map(|(cid, _)| cid).ok()))
10201020
.collect()
10211021
.await
10221022
}

0 commit comments

Comments
 (0)