From 7751a1c1844262a0be409ad1f692e9b1be2c4fc8 Mon Sep 17 00:00:00 2001 From: Owen Leung Date: Thu, 16 Jan 2025 00:30:04 +0800 Subject: [PATCH] Put allow deadcode for with_critical_section --- src/types/list.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/list.rs b/src/types/list.rs index 2d65dd4280f..155f5e57be8 100644 --- a/src/types/list.rs +++ b/src/types/list.rs @@ -647,7 +647,7 @@ impl<'py> BoundListIterator<'py> { } } - #[cfg(not(Py_LIMITED_API))] + #[allow(dead_code)] fn with_critical_section( &mut self, f: impl FnOnce(&mut Index, &mut Length, &Bound<'py, PyList>) -> R,