diff options
Diffstat (limited to 'hittekaart-py')
| -rw-r--r-- | hittekaart-py/Cargo.toml | 2 | ||||
| -rw-r--r-- | hittekaart-py/src/lib.rs | 2 |
2 files changed, 2 insertions, 2 deletions
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>,)*) |
