We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0474851 commit f64464dCopy full SHA for f64464d
derive-impl/src/pyclass.rs
@@ -625,8 +625,8 @@ where
625
let slot_ident = Ident::new(&slot_ident.to_string().to_lowercase(), slot_ident.span());
626
let slot_name = slot_ident.to_string();
627
let tokens = {
628
- const NON_ATOMIC_SLOTS: &[&str] = &["as_buffer"];
629
- const POINTER_SLOTS: &[&str] = &["as_number", "as_sequence", "as_mapping"];
+ const NON_ATOMIC_SLOTS: &[&str] = &["as_buffer", "as_number"];
+ const POINTER_SLOTS: &[&str] = &["as_sequence", "as_mapping"];
630
if NON_ATOMIC_SLOTS.contains(&slot_name.as_str()) {
631
quote_spanned! { span =>
632
slots.#slot_ident = Some(Self::#ident as _);
0 commit comments