Skip to content

Commit ac2e739

Browse files
committed
Two deprecations renamed.
1 parent 0dcb116 commit ac2e739

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ impl MatchPy {
7070
fn regress_py(py: Python, m: &Bound<'_, PyModule>) -> PyResult<()> {
7171
m.add_class::<MatchPy>()?;
7272
m.add_class::<RegexPy>()?;
73-
m.add("RegressError", py.get_type_bound::<RegressError>())?;
73+
m.add("RegressError", py.get_type::<RegressError>())?;
7474
Ok(())
7575
}
7676

7777
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())
78+
Ok(PySlice::new(py, range.start.try_into()?, range.end.try_into()?, 1).into())
7979
}

0 commit comments

Comments
 (0)