From 8617c676a231d2f865f56fd19db8d51101ed588e Mon Sep 17 00:00:00 2001 From: reinterpretcat Date: Tue, 26 Mar 2024 21:46:01 +0100 Subject: [PATCH] Fix pyo3 deprecation warning --- README.md | 2 +- vrp-cli/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 055568510..009137ab2 100644 --- a/README.md +++ b/README.md @@ -144,4 +144,4 @@ if you have ideas for improvement. # Status -Experimental. Development is on pause: I deprioritized this project. +Experimental. Active development is on pause, so very limited support at this time. diff --git a/vrp-cli/src/lib.rs b/vrp-cli/src/lib.rs index 25f80bb47..da2a4c926 100644 --- a/vrp-cli/src/lib.rs +++ b/vrp-cli/src/lib.rs @@ -410,7 +410,7 @@ mod py_interop { } #[pymodule] - fn vrp_cli(_py: Python, m: &PyModule) -> PyResult<()> { + fn vrp_cli(m: &Bound<'_, PyModule>) -> PyResult<()> { m.add_function(wrap_pyfunction!(convert_to_pragmatic, m)?)?; m.add_function(wrap_pyfunction!(get_routing_locations, m)?)?; m.add_function(wrap_pyfunction!(solve_pragmatic, m)?)?;