equal
deleted
inserted
replaced
234 /// Mutable variant of [`py_leaked_borrow`] |
234 /// Mutable variant of [`py_leaked_borrow`] |
235 /// |
235 /// |
236 /// # Safety |
236 /// # Safety |
237 /// |
237 /// |
238 /// See [`py_leaked_borrow`] |
238 /// See [`py_leaked_borrow`] |
239 #[allow(dead_code)] |
|
240 pub(crate) unsafe fn py_leaked_borrow_mut<'a, 'py: 'a, T>( |
239 pub(crate) unsafe fn py_leaked_borrow_mut<'a, 'py: 'a, T>( |
241 py: &impl WithGIL<'py>, |
240 py: &impl WithGIL<'py>, |
242 leaked: &'a mut cpython::UnsafePyLeaked<T>, |
241 leaked: &'a mut cpython::UnsafePyLeaked<T>, |
243 ) -> PyResult<cpython::PyLeakedRefMut<'a, T>> { |
242 ) -> PyResult<cpython::PyLeakedRefMut<'a, T>> { |
244 let py = cpython_handle(py); |
243 let py = cpython_handle(py); |