File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
setuptools-rust-starter/src Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ impl ExampleClass {
20
20
21
21
/// An example module implemented in Rust using PyO3.
22
22
#[ pymodule]
23
- fn maturin_starter ( py : Python < ' _ > , m : & PyModule ) -> PyResult < ( ) > {
23
+ fn maturin_starter ( py : Python < ' _ > , m : & Bound < ' _ , PyModule > ) -> PyResult < ( ) > {
24
24
m. add_class :: < ExampleClass > ( ) ?;
25
25
m. add_wrapped ( wrap_pymodule ! ( submodule:: submodule) ) ?;
26
26
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ impl ExampleClass {
20
20
21
21
/// An example module implemented in Rust using PyO3.
22
22
#[ pymodule]
23
- fn _setuptools_rust_starter ( py : Python < ' _ > , m : & PyModule ) -> PyResult < ( ) > {
23
+ fn _setuptools_rust_starter ( py : Python < ' _ > , m : & Bound < ' _ , PyModule > ) -> PyResult < ( ) > {
24
24
m. add_class :: < ExampleClass > ( ) ?;
25
25
m. add_wrapped ( wrap_pymodule ! ( submodule:: submodule) ) ?;
26
26
You can’t perform that action at this time.
0 commit comments