We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dcb116 commit ac2e739Copy full SHA for ac2e739
src/lib.rs
@@ -70,10 +70,10 @@ impl MatchPy {
70
fn regress_py(py: Python, m: &Bound<'_, PyModule>) -> PyResult<()> {
71
m.add_class::<MatchPy>()?;
72
m.add_class::<RegexPy>()?;
73
- m.add("RegressError", py.get_type_bound::<RegressError>())?;
+ m.add("RegressError", py.get_type::<RegressError>())?;
74
Ok(())
75
}
76
77
fn to_slice(py: Python, range: Range) -> PyResult<PyObject> {
78
- Ok(PySlice::new_bound(py, range.start.try_into()?, range.end.try_into()?, 1).into())
+ Ok(PySlice::new(py, range.start.try_into()?, range.end.try_into()?, 1).into())
79
0 commit comments