From 79c600652df850bc8b9f90185d2dc4b39c9599cb Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Sat, 29 Nov 2025 19:38:14 +0100 Subject: update dependencies --- hittekaart-py/Cargo.toml | 2 +- hittekaart-py/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'hittekaart-py') diff --git a/hittekaart-py/Cargo.toml b/hittekaart-py/Cargo.toml index 915f467..cddc759 100644 --- a/hittekaart-py/Cargo.toml +++ b/hittekaart-py/Cargo.toml @@ -9,6 +9,6 @@ name = "hittekaart_py" crate-type = ["cdylib"] [dependencies] -pyo3 = "0.26.0" +pyo3 = "0.27.1" hittekaart = { path = "../hittekaart" } rayon = "1.10.0" diff --git a/hittekaart-py/src/lib.rs b/hittekaart-py/src/lib.rs index f14515a..c0f3f6c 100644 --- a/hittekaart-py/src/lib.rs +++ b/hittekaart-py/src/lib.rs @@ -248,7 +248,7 @@ impl Settings { macro_rules! dispatch_generate { ($settings:expr, $tracks:expr, $renderer:expr, $storage:expr => <$type:ty>, $(<$types:ty>,)*) => { - if let Ok(r) = $renderer.downcast::<$type>() { + if let Ok(r) = $renderer.cast::<$type>() { do_generate($settings, $tracks, &r.borrow().inner, $storage) } else { dispatch_generate!($settings, $tracks, $renderer, $storage => $(<$types>,)*) -- cgit v1.2.3