Skip to content

Commit

Permalink
fix failing CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen-CH-Leung committed Jan 14, 2025
1 parent 51104a1 commit cae0981
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/types/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ impl<'py> BoundListIterator<'py> {
}

#[inline]
#[cfg(not(feature = "nightly"))]
#[cfg(all(not(Py_LIMITED_API), not(feature = "nightly")))]
fn nth(
index: &mut Index,
length: &mut Length,
Expand Down Expand Up @@ -619,7 +619,7 @@ impl<'py> BoundListIterator<'py> {
}

#[inline]
#[cfg(not(feature = "nightly"))]
#[cfg(all(not(Py_LIMITED_API), not(feature = "nightly")))]
fn nth_back(
index: &mut Index,
length: &mut Length,
Expand Down Expand Up @@ -684,7 +684,7 @@ impl<'py> Iterator for BoundListIterator<'py> {
}

#[inline]
#[cfg(not(feature = "nightly"))]
#[cfg(all(not(Py_LIMITED_API), not(feature = "nightly")))]
fn nth(&mut self, n: usize) -> Option<Self::Item> {
self.with_critical_section(|index, length, list| Self::nth(index, length, list, n))
}
Expand Down Expand Up @@ -863,7 +863,7 @@ impl DoubleEndedIterator for BoundListIterator<'_> {
}

#[inline]
#[cfg(not(feature = "nightly"))]
#[cfg(all(not(Py_LIMITED_API), not(feature = "nightly")))]
fn nth_back(&mut self, n: usize) -> Option<Self::Item> {
self.with_critical_section(|index, length, list| Self::nth_back(index, length, list, n))
}
Expand Down

0 comments on commit cae0981

Please sign in to comment.