Skip to content

Commit 3f9ff46

Browse files
authored
Use into_pyobject in compression_chunker.rs
1 parent 684d635 commit 3f9ff46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust-ext/src/compression_chunker.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ impl ZstdCompressionChunkerIterator {
225225
let chunk = PyBytes::new(py, &slf.dest_buffer);
226226
slf.dest_buffer.clear();
227227

228-
return Ok(Some(chunk.into_py(py)));
228+
return Ok(Some(chunk.into_pyobject(py)));
229229
}
230230

231231
// Else continue to compress available input data.
@@ -278,6 +278,6 @@ impl ZstdCompressionChunkerIterator {
278278
let chunk = PyBytes::new(py, &slf.dest_buffer);
279279
slf.dest_buffer.clear();
280280

281-
Ok(Some(chunk.into_py(py)))
281+
Ok(Some(chunk.into_pyobject(py)))
282282
}
283283
}

0 commit comments

Comments
 (0)