Fix broken CI (rustc 1.96) (#7992)

* Fix lints for clippy 1.96

* Try to fix example

* Put fix in correct place
This commit is contained in:
Shahar Naveh authored and GitHub committed 2026-05-30 20:16:49 +09:00
1 parent 938d42184f
commit 26f817a55b
3 files changed
+2 -5

No files matched your search

+1 -1
View File
@@ -131,7 +131,7 @@ impl Comparable for PyWeak {
) -> PyResult<PyComparisonValue> {
op.eq_only(|| {
let other = class_or_notimplemented!(Self, other);
let both = zelf.upgrade().and_then(|s| other.upgrade().map(|o| (s, o)));
let both = zelf.upgrade().zip(other.upgrade());
match both {
// CPython parity (Objects/weakref.c::weakref_richcompare): use
// PyObject_RichCompare on the referents, not the bool variant,
-4
View File
@@ -1006,10 +1006,6 @@ mod builtins {
exp: y,
modulus,
} = args;
#[expect(
clippy::unnecessary_option_map_or_else,
reason = "changing this won't compile"
)]
let modulus = modulus
.as_ref()
.map_or_else(|| vm.ctx.none.as_object(), |m| m);
@@ -1,5 +1,6 @@
use rustpython_vm::Interpreter;
#[link(wasm_import_module = "env")]
unsafe extern "C" {
fn kv_get(kp: i32, kl: i32, vp: i32, vl: i32) -> i32;