mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 10:44:36 +08:00
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:
1 parent
938d42184f
commit
26f817a55b
3 files changed
+2
-5
No files matched your search
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user