fix: guide example for pyclass expansion
This commit is contained in:
parent
9def53317f
commit
4fd01c3cd6
|
@ -861,7 +861,7 @@ impl pyo3::impl_::pyclass::PyClassImpl for MyClass {
|
|||
fn for_all_items(visitor: &mut dyn FnMut(&pyo3::impl_::pyclass::PyClassItems)) {
|
||||
use pyo3::impl_::pyclass::*;
|
||||
let collector = PyClassImplCollector::<MyClass>::new();
|
||||
static INTRINSIC_ITEMS: &PyClassItems = PyClassItems { slots: &[], methods: &[] };
|
||||
static INTRINSIC_ITEMS: PyClassItems = PyClassItems { slots: &[], methods: &[] };
|
||||
visitor(&INTRINSIC_ITEMS);
|
||||
visitor(collector.py_methods());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue