Skip to content

Commit e88f8be

Browse files
committed
Fix clippy unused function warning
1 parent 0b23173 commit e88f8be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types/list.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ impl<'py> BoundListIterator<'py> {
548548
}
549549

550550
#[inline]
551-
#[cfg(not(Py_LIMITED_API))]
551+
#[cfg(all(not(Py_LIMITED_API), not(feature = "nightly")))]
552552
#[deny(unsafe_op_in_unsafe_fn)]
553553
unsafe fn nth_unchecked(
554554
index: &mut Index,
@@ -630,7 +630,7 @@ impl<'py> BoundListIterator<'py> {
630630
}
631631

632632
#[inline]
633-
#[cfg(not(Py_LIMITED_API))]
633+
#[cfg(all(not(Py_LIMITED_API), not(feature = "nightly")))]
634634
#[deny(unsafe_op_in_unsafe_fn)]
635635
unsafe fn nth_back_unchecked(
636636
index: &mut Index,

0 commit comments

Comments
 (0)