fix: allow impl of Ungil for deprecated PyCell in nightly (#4053)

This commit is contained in:
Joseph Perez 2024-04-07 00:36:52 +02:00 committed by David Hewitt
parent 0b888cb934
commit b8ec43e469
1 changed files with 1 additions and 0 deletions

View File

@ -280,6 +280,7 @@ mod nightly {
impl !Ungil for crate::PyAny {}
// All the borrowing wrappers
#[allow(deprecated)]
impl<T> !Ungil for crate::PyCell<T> {}
impl<T> !Ungil for crate::PyRef<'_, T> {}
impl<T> !Ungil for crate::PyRefMut<'_, T> {}