We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a76ce14 commit 02b8dfeCopy full SHA for 02b8dfe
examples/string-sum/src/lib.rs
@@ -52,6 +52,7 @@ unsafe fn parse_arg_as_i32(obj: *mut PyObject, n_arg: usize) -> Option<i32> {
52
let mut overflow = 0;
53
let i_long: c_long = PyLong_AsLongAndOverflow(obj, &mut overflow);
54
55
+ #[allow(irrefutable_let_patterns)] // some platforms have c_long equal to i32
56
if overflow != 0 {
57
raise_overflowerror(obj);
58
None
0 commit comments