Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added borrowed value conversion traits for geo_types. #202

Merged
merged 2 commits into from
Aug 22, 2022

Conversation

metasim
Copy link
Contributor

@metasim metasim commented Aug 19, 2022

  • 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.

Reworked current implementation to use borrowed values, and created macro to generate owned value variants that delegate to the borrowed value ones.

Note: Until #201 is addressed, invalid geometry conversions will be cloned during error reporting.

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.

LGTM, but I'll leave it open for a couple days in case anyone else cares to weigh in.

@michaelkirk michaelkirk mentioned this pull request Aug 19, 2022
2 tasks
@michaelkirk
Copy link
Member

bors r=michaelkirk,urschrei

@bors
Copy link
Contributor

bors bot commented Aug 22, 2022

Build succeeded:

@bors bors bot merged commit ef9c6e9 into georust:master Aug 22, 2022
@metasim metasim deleted the feature/borrowed-conversions branch August 22, 2022 15:59
bors bot added a commit that referenced this pull request Aug 25, 2022
203: mismatch type error r=metasim a=michaelkirk

- [x] I agree to follow the project's [code of conduct](https://github.com/georust/geo/blob/master/CODE_OF_CONDUCT.md).
- [x] I added an entry to `CHANGES.md` if knowledge of this change could be valuable to users.
---

Fixes #201
~~Based on #202, so let's merge that first.~~ merged!


Co-authored-by: Michael Kirk <michael.code@endoftheworl.de>
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.

3 participants