Skip to content

Commit 086359d

Browse files
authored
Update mod.rs
1 parent 645ce7d commit 086359d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pg/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,8 @@ impl AsyncPgConnection {
389389
.flat_map(|(bind_index, (bytes_0, bytes_1))| {
390390
std::iter::zip(bytes_0.unwrap_or_default(), bytes_1.unwrap_or_default())
391391
.enumerate()
392-
.filter(|(_, bytes)| bytes == (0, 1))
393-
.map(|(byte_index, _)| (*bind_index, byte_index))
392+
.filter(|&(_, bytes)| bytes == (0, 1))
393+
.map(move |(byte_index, _)| (bind_index, byte_index))
394394
})
395395
// Avoid storing the bind collectors in the returned Future
396396
.collect::<Vec<_>>();

0 commit comments

Comments
 (0)