Skip to content

Commit 51104a1

Browse files
committed
fix fmt
1 parent ed8dba6 commit 51104a1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/types/list.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -559,11 +559,13 @@ impl<'py> BoundListIterator<'py> {
559559
let target_index = index.0 + n;
560560
if target_index < length {
561561
let item = {
562-
#[cfg(Py_LIMITED_API)] {
562+
#[cfg(Py_LIMITED_API)]
563+
{
563564
list.get_item(target_index).expect("get-item failed")
564565
}
565566

566-
#[cfg(not(Py_LIMITED_API))] {
567+
#[cfg(not(Py_LIMITED_API))]
568+
{
567569
unsafe { list.get_item_unchecked(target_index) }
568570
}
569571
};
@@ -684,9 +686,7 @@ impl<'py> Iterator for BoundListIterator<'py> {
684686
#[inline]
685687
#[cfg(not(feature = "nightly"))]
686688
fn nth(&mut self, n: usize) -> Option<Self::Item> {
687-
self.with_critical_section(|index, length, list| {
688-
Self::nth(index, length, list, n)
689-
})
689+
self.with_critical_section(|index, length, list| Self::nth(index, length, list, n))
690690
}
691691

692692
#[inline]

0 commit comments

Comments
 (0)