We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0692d3 commit 050ca62Copy full SHA for 050ca62
crates/vm/src/class.rs
@@ -192,11 +192,7 @@ pub trait PyClassImpl: PyClassDef {
192
// and stored in a static cell, so it lives for 'static.
193
let wrapper: &'static PyMethodDef =
194
unsafe { &*core::ptr::addr_of!(ctx.slot_new_wrapper) };
195
- let bound_new = wrapper.build_bound_method(
196
- ctx,
197
- class.to_owned().into(),
198
- class,
199
- );
+ let bound_new = wrapper.build_bound_method(ctx, class.to_owned().into(), class);
200
class.set_attr(identifier!(ctx, __new__), bound_new.into());
201
}
202
0 commit comments