Skip to content

Commit d60dc16

Browse files
authored
allow python_parse to take ref to self (#214)
1 parent 4269416 commit d60dc16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/jiter/src/python.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ impl PythonParse {
4444
/// # Returns
4545
///
4646
/// A [PyObject](https://docs.rs/pyo3/latest/pyo3/type.PyObject.html) representing the parsed JSON value.
47-
pub fn python_parse<'py>(self, py: Python<'py>, json_data: &[u8]) -> JsonResult<Bound<'py, PyAny>> {
47+
pub fn python_parse<'py>(&self, py: Python<'py>, json_data: &[u8]) -> JsonResult<Bound<'py, PyAny>> {
4848
macro_rules! ppp {
4949
($string_cache:ident, $key_check:ident, $parse_number:ident) => {
5050
PythonParser::<$string_cache, $key_check, $parse_number>::parse(

0 commit comments

Comments
 (0)