Skip to content

Commit 81008e1

Browse files
committed
fix clippy lint on 1.87 beta
1 parent 4732b60 commit 81008e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types/any.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1373,7 +1373,7 @@ impl<'py> PyAnyMethods<'py> for Bound<'py, PyAny> {
13731373
}
13741374

13751375
fn is_ellipsis(&self) -> bool {
1376-
unsafe { ffi::Py_Ellipsis() == self.as_ptr() }
1376+
unsafe { ptr::eq(ffi::Py_Ellipsis(), self.as_ptr()) }
13771377
}
13781378

13791379
fn is_empty(&self) -> PyResult<bool> {

0 commit comments

Comments
 (0)