Skip to content

Commit b2009ea

Browse files
committed
fix maturin and setuptools-rust starters
1 parent d48e1ee commit b2009ea

File tree

2 files changed

+2
-2
lines changed
  • examples

2 files changed

+2
-2
lines changed

examples/maturin-starter/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ impl ExampleClass {
2020

2121
/// An example module implemented in Rust using PyO3.
2222
#[pymodule]
23-
fn maturin_starter(py: Python<'_>, m: &PyModule) -> PyResult<()> {
23+
fn maturin_starter(py: Python<'_>, m: &Bound<'_, PyModule>) -> PyResult<()> {
2424
m.add_class::<ExampleClass>()?;
2525
m.add_wrapped(wrap_pymodule!(submodule::submodule))?;
2626

examples/setuptools-rust-starter/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ impl ExampleClass {
2020

2121
/// An example module implemented in Rust using PyO3.
2222
#[pymodule]
23-
fn _setuptools_rust_starter(py: Python<'_>, m: &PyModule) -> PyResult<()> {
23+
fn _setuptools_rust_starter(py: Python<'_>, m: &Bound<'_, PyModule>) -> PyResult<()> {
2424
m.add_class::<ExampleClass>()?;
2525
m.add_wrapped(wrap_pymodule!(submodule::submodule))?;
2626

0 commit comments

Comments
 (0)