Skip to content

Commit 33efc4f

Browse files
committed
Substrait feature clippy updates
1 parent bc1c0ea commit 33efc4f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ fn _internal(py: Python, m: Bound<'_, PyModule>) -> PyResult<()> {
121121

122122
#[cfg(feature = "substrait")]
123123
fn setup_substrait_module(py: Python, m: &Bound<'_, PyModule>) -> PyResult<()> {
124-
let substrait = PyModule::new_bound(py, "substrait")?;
124+
let substrait = PyModule::new(py, "substrait")?;
125125
substrait::init_module(&substrait)?;
126126
m.add_submodule(&substrait)?;
127127
Ok(())

src/substrait.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl PyPlan {
4040
self.plan
4141
.encode(&mut proto_bytes)
4242
.map_err(PyDataFusionError::EncodeError)?;
43-
Ok(PyBytes::new_bound(py, &proto_bytes).unbind().into())
43+
Ok(PyBytes::new(py, &proto_bytes).into())
4444
}
4545
}
4646

@@ -95,7 +95,7 @@ impl PySubstraitSerializer {
9595
py: Python,
9696
) -> PyDataFusionResult<PyObject> {
9797
let proto_bytes: Vec<u8> = wait_for_future(py, serializer::serialize_bytes(sql, &ctx.ctx))?;
98-
Ok(PyBytes::new_bound(py, &proto_bytes).unbind().into())
98+
Ok(PyBytes::new(py, &proto_bytes).into())
9999
}
100100

101101
#[staticmethod]

0 commit comments

Comments
 (0)