Skip to content

Commit 8786cde

Browse files
authored
Use into_pyobject in compressor_iterator.rs
1 parent 181e53d commit 8786cde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust-ext/src/compressor_iterator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ impl ZstdCompressorIterator {
6060
// TODO avoid buffer copy
6161
let chunk = PyBytes::new(py, &dest_buffer);
6262

63-
return Ok(Some(chunk.into_py(py)));
63+
return Ok(Some(chunk.into_pyobject(py)));
6464
}
6565

6666
// Else read another chunk in hopes of producing output data.
@@ -94,7 +94,7 @@ impl ZstdCompressorIterator {
9494
// TODO avoid buffer copy.
9595
let chunk = PyBytes::new(py, &dest_buffer);
9696

97-
return Ok(Some(chunk.into_py(py)));
97+
return Ok(Some(chunk.into_pyobject(py)));
9898
}
9999

100100
Ok(None)

0 commit comments

Comments
 (0)