Skip to content

Commit 131e8b2

Browse files
committed
Acoid a move closure to get proper lifetimes
1 parent 546152b commit 131e8b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/async-multiplexed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async fn main() {
4040
// features = ["tokio-rt-core"] must be specified on redis crate
4141
let con = client.get_multiplexed_tokio_connection().await.unwrap();
4242

43-
let cmds = (0..100).map(move |i| test_cmd(&con, i));
43+
let cmds = (0..100).map(|i| test_cmd(&con, i));
4444
let result = future::try_join_all(cmds).await.unwrap();
4545
assert_eq!(100, result.len());
4646

0 commit comments

Comments
 (0)