Skip to content

Commit 51ace90

Browse files
committed
Don't fuse row iterator
1 parent a64ca5f commit 51ace90

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1644,10 +1644,9 @@ impl<'a> PostgresCopyInStatement<'a> {
16441644
let _ = buf.write_be_i32(0);
16451645
let _ = buf.write_be_i32(0);
16461646

1647-
for row in rows {
1647+
for mut row in rows {
16481648
let _ = buf.write_be_i16(self.column_types.len() as i16);
16491649

1650-
let mut row = row.fuse();
16511650
let mut types = self.column_types.iter();
16521651
loop {
16531652
match (row.next(), types.next()) {

0 commit comments

Comments
 (0)