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 GitHub
parent 7a00b4d357
commit 2f0869a6d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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> {}