Skip to content

Commit de7fac8

Browse files
committed
chore: fix clippy issues
1 parent 729943b commit de7fac8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/cubejs-backend-native/src/python/runtime.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ impl PyRuntime {
116116
Ok(PyScheduledFunResult::Poll(Box::pin(fut)))
117117
} else {
118118
Ok(PyScheduledFunResult::Ready(CLRepr::from_python_ref(
119-
&call_res.bind(py),
119+
call_res.bind(py),
120120
)?))
121121
}
122122
});
@@ -156,7 +156,7 @@ impl PyRuntime {
156156

157157
let res = Python::with_gil(move |py| -> Result<CLRepr, PyErr> {
158158
let res = match fut_res {
159-
Ok(r) => CLRepr::from_python_ref(&r.bind(py)),
159+
Ok(r) => CLRepr::from_python_ref(r.bind(py)),
160160
Err(err) => Err(err),
161161
};
162162

packages/cubejs-backend-native/src/python/utils.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub fn python_fn_call_sync(py_fun: &Py<PyFunction>, arguments: Vec<CLRepr>) -> P
2121
"Calling function with async response is not supported",
2222
))
2323
} else {
24-
CLRepr::from_python_ref(&call_res.bind(py))
24+
CLRepr::from_python_ref(call_res.bind(py))
2525
}
2626
})
2727
}
@@ -44,7 +44,7 @@ pub fn python_obj_call_sync(py_fun: &PyObject, arguments: Vec<CLRepr>) -> PyResu
4444
"Calling object with async response is not supported",
4545
))
4646
} else {
47-
CLRepr::from_python_ref(&call_res.bind(py))
47+
CLRepr::from_python_ref(call_res.bind(py))
4848
}
4949
})
5050
}
@@ -74,7 +74,7 @@ where
7474
"Calling object method with async response is not supported",
7575
))
7676
} else {
77-
CLRepr::from_python_ref(&call_res.bind(py))
77+
CLRepr::from_python_ref(call_res.bind(py))
7878
}
7979
})
8080
}

packages/cubejs-backend-native/src/template/mj_value/python.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ impl StructObject for JinjaPythonObject {
171171
let res = Python::with_gil(move |py| -> PyResult<CLRepr> {
172172
let attr_name = obj_ref.getattr(py, name)?;
173173

174-
CLRepr::from_python_ref(&attr_name.bind(py))
174+
CLRepr::from_python_ref(attr_name.bind(py))
175175
});
176176

177177
match res {

0 commit comments

Comments
 (0)