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
Use generic type for precision in conversion #43
Conversation
Makes sense, thanks! Wasn't sure how comprehensive you were thinking the changes should be, but that works. It looks like some |
I'm fine with either of your options! Probably not going to be much of a difference for users of this crate |
Gotcha, I just made those changes. I ended up needing to use |
@frewsxcv let me know if there’s anything I should fix here when you have a chance, thanks! |
Nope, looks excellent! Thanks so much! |
bors r+ |
43: Use generic type for precision in conversion r=frewsxcv a=pjsier Attempt to close #33. I based this off of the conversion implementation in [geojson](https://github.com/georust/geojson/blob/master/src/conversion.rs) and only used generic types for converting to `geo_types` objects Initially I tried to update the `From` trait implementation, but I used `Into` instead because updating `From` gave me the following error: ``` type parameter `T` must be used as the type parameter for some local type ``` If I missed something that would make `From` work instead I can make that change. Let me know if I should change that or anything else here, thanks! Co-authored-by: pjsier <pjsier@gmail.com>
Build succeeded |
Attempt to close #33. I based this off of the conversion implementation in geojson and only used generic types for converting to
geo_types
objectsInitially I tried to update the
From
trait implementation, but I usedInto
instead because updatingFrom
gave me the following error:If I missed something that would make
From
work instead I can make that change. Let me know if I should change that or anything else here, thanks!