We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 645ce7d commit 086359dCopy full SHA for 086359d
src/pg/mod.rs
@@ -389,8 +389,8 @@ impl AsyncPgConnection {
389
.flat_map(|(bind_index, (bytes_0, bytes_1))| {
390
std::iter::zip(bytes_0.unwrap_or_default(), bytes_1.unwrap_or_default())
391
.enumerate()
392
- .filter(|(_, bytes)| bytes == (0, 1))
393
- .map(|(byte_index, _)| (*bind_index, byte_index))
+ .filter(|&(_, bytes)| bytes == (0, 1))
+ .map(move |(byte_index, _)| (bind_index, byte_index))
394
})
395
// Avoid storing the bind collectors in the returned Future
396
.collect::<Vec<_>>();
0 commit comments