Skip to content

Commit 7e5e5cd

Browse files
committed
Update the example to the current pyo3
1 parent dad8781 commit 7e5e5cd

2 files changed

Lines changed: 48 additions & 128 deletions

File tree

examples/hello_world/Cargo.lock

Lines changed: 47 additions & 127 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/hello_world/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ fn log_hello() {
1313
}
1414

1515
#[pymodule]
16-
fn hello_world(py: Python<'_>, m: &PyModule) -> PyResult<()> {
16+
fn hello_world(py: Python<'_>, m: &Bound<'_, PyModule>) -> PyResult<()> {
1717
let _ = Logger::new(py, Caching::LoggersAndLevels)?
1818
.install();
1919

0 commit comments

Comments
 (0)