Skip to content

Commit f64464d

Browse files
committed
change as_number to NON_ATOMIC_SLOTS
1 parent 0474851 commit f64464d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

derive-impl/src/pyclass.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -625,8 +625,8 @@ where
625625
let slot_ident = Ident::new(&slot_ident.to_string().to_lowercase(), slot_ident.span());
626626
let slot_name = slot_ident.to_string();
627627
let tokens = {
628-
const NON_ATOMIC_SLOTS: &[&str] = &["as_buffer"];
629-
const POINTER_SLOTS: &[&str] = &["as_number", "as_sequence", "as_mapping"];
628+
const NON_ATOMIC_SLOTS: &[&str] = &["as_buffer", "as_number"];
629+
const POINTER_SLOTS: &[&str] = &["as_sequence", "as_mapping"];
630630
if NON_ATOMIC_SLOTS.contains(&slot_name.as_str()) {
631631
quote_spanned! { span =>
632632
slots.#slot_ident = Some(Self::#ident as _);

0 commit comments

Comments
 (0)