Skip to content

Commit

Permalink
Fix method names
Browse files Browse the repository at this point in the history
  • Loading branch information
mejrs committed Nov 10, 2021
1 parent 7f31000 commit 4adb257
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pycell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ impl<T: PyClass> PyCell<T> {
}
}

pub(crate) unsafe fn immutable_pyclass_try_borrow_unchecked_unguarded(&self) -> &T {
pub(crate) unsafe fn _borrow_unchecked_unguarded(&self) -> &T {
&*self.contents.value.get()
}

Expand Down
2 changes: 1 addition & 1 deletion src/pyclass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ pub unsafe trait PyClass:
/// by wrapping `PyCell::immutable_pyclass_try_borrow_unguarded()`.
#[inline]
unsafe fn try_borrow_unguarded(slf: &PyCell<Self>) -> Result<&Self, PyBorrowError> {
Ok(PyCell::_try_borrow_unchecked_unguarded(slf))
Ok(PyCell::_borrow_unchecked_unguarded(slf))
}

/// Default implementation that does nothing.
Expand Down

0 comments on commit 4adb257

Please sign in to comment.