Skip to content

Commit 2a5e3fc

Browse files
⬆️ Update Rust crate pyo3 to 0.28.0 (#1426)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Robert Resch <robert@resch.dev>
1 parent e1e2ca4 commit 2a5e3fc

3 files changed

Lines changed: 15 additions & 42 deletions

File tree

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ liblzma = "0.4.0"
1919
log = "0.4.26"
2020
once_cell = "1.20.3"
2121
png = "0.18.0"
22-
pyo3 = "0.27.0"
22+
pyo3 = "0.28.0"
2323
pyo3-log = ">=0.13.1"
2424
svg = "0.18.0"
2525
zstd = "0.13.3"

src/map/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ fn get_svg_subset(subset: &MapSubset, rotation: RotationAngle) -> PyResult<(CSSC
7575
Ok((css_key, svg_object))
7676
}
7777

78-
#[pyclass(eq, eq_int)]
78+
#[pyclass(from_py_object, eq, eq_int)]
7979
#[derive(PartialEq, Debug, Clone)]
8080
enum PositionType {
8181
#[pyo3(name = "DEEBOT")]
@@ -122,7 +122,7 @@ impl PositionType {
122122
}
123123
}
124124

125-
#[pyclass(eq, eq_int, frozen, hash)]
125+
#[pyclass(from_py_object, eq, eq_int, frozen, hash)]
126126
#[derive(Default, PartialEq, Debug, Clone, Copy, Hash)]
127127
pub(super) enum RotationAngle {
128128
#[pyo3(name = "DEG_0")]

0 commit comments

Comments
 (0)