Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
bschoenmaeckers committed Dec 9, 2024
1 parent cac596e commit 08f3212
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/types/iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,13 @@ impl PyIterator {
}

#[derive(Debug)]
#[cfg(all(not(PyPy), Py_3_10))]
pub enum PySendResult<'py> {
Next(Bound<'py, PyAny>),
Return(Bound<'py, PyAny>),
}

impl<'py> Bound<'py, PyIterator> {
impl Bound<'_, PyIterator> {
/// Sends a value into a python generator. This is the equivalent of calling `generator.send(value)` in Python.
/// This resumes the generator and continues its execution until the next `yield` or `return` statement.
/// If the generator exits without returning a value, this function returns a `StopException`.
Expand Down

0 comments on commit 08f3212

Please sign in to comment.