Skip to content

Commit

Permalink
Put allow deadcode for with_critical_section
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen-CH-Leung committed Jan 15, 2025
1 parent b7373aa commit 7751a1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ impl<'py> BoundListIterator<'py> {
}
}

#[cfg(not(Py_LIMITED_API))]
#[allow(dead_code)]
fn with_critical_section<R>(
&mut self,
f: impl FnOnce(&mut Index, &mut Length, &Bound<'py, PyList>) -> R,
Expand Down

0 comments on commit 7751a1c

Please sign in to comment.