Skip to content

Commit

Permalink
Fix manual_ok_err clippy lint on nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
LilyFoote committed Feb 2, 2025
1 parent f89b5f7 commit de2822c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/types/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,7 @@ impl<'py> PySetMethods<'py> for Bound<'py, PySet> {

fn pop(&self) -> Option<Bound<'py, PyAny>> {
let element = unsafe { ffi::PySet_Pop(self.as_ptr()).assume_owned_or_err(self.py()) };
match element {
Ok(e) => Some(e),
Err(_) => None,
}
element.ok()
}

fn iter(&self) -> BoundSetIterator<'py> {
Expand Down

0 comments on commit de2822c

Please sign in to comment.