Skip to content

Conversation

@dsgallups
Copy link
Contributor

  • I agree to follow the project's code of conduct.
  • I added an entry to CHANGES.md if knowledge of this change could be valuable to users.

  • Updated variant Error::FeatureHasNoGeometry to wrap a Box<Feature> instead of a Feature. This reduces the size of the enum from 200 to 48.
  • Fixed document indentation.

@lnicola
Copy link
Member

lnicola commented Dec 12, 2025

Can you also drop that --verbose to make the plugin happy?

@petern48
Copy link
Contributor

petern48 commented Dec 31, 2025

Have a fix on my PR here: 7fc093f

dsgallups and others added 4 commits January 5, 2026 15:54
The `Error::FeatureHasNoGeometry` variant contains the `FeatureType`,
which drastically increases the total size of the returned enum. This
has been boxed to
1. fix the lint
2. decrease the width of the type
Changing an enums private associated data is not "possibly breaking" in
any sane world.

Also: include GH links
Copy link
Member

@michaelkirk michaelkirk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

* Fix `geo_rect_conversion_test` to conform to the correctly-wound `Polygon` output from `geo_types::geometry::Rect.to_polygon`
* See https://github.com/georust/geojson/issues/257
* Potentially breaking: Box `Error::FeatureHasNoGeometry` inner type (`Box<Feature>`). This decreases the size of `Error` from 200 to 48.
* Decreased the size of the `Error` enum from 200 to 48.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note, I tweaked the ChangeLog entry - I can't see how this would be potentially breaking in the semver sense (tho maybe in the https://www.xkcd.com/1172/ sense).

@michaelkirk michaelkirk added this pull request to the merge queue Jan 6, 2026
Merged via the queue into georust:main with commit 0a29c01 Jan 6, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants