Skip to content

Commit 108abb4

Browse files
LilyFootedavidhewitt
authored andcommitted
1 parent ce2d6e9 commit 108abb4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/types/set.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,7 @@ impl<'py> PySetMethods<'py> for Bound<'py, PySet> {
202202

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

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

0 commit comments

Comments
 (0)