geo icon indicating copy to clipboard operation
geo copied to clipboard

Replace ToGeo with Into or TryInto?

Open jdroenner opened this issue 7 years ago • 8 comments

rust-geo still has the ToGeo trait in traits.rs. Is this trait still required? I guess the conversion traits are the way to go.

jdroenner avatar May 07 '18 20:05 jdroenner

Good idea. I don't think we have much of a reason to keep it around

frewsxcv avatar May 08 '18 00:05 frewsxcv

We can't use TryInto because it's recently been un-stabilised again, but do we actually need fallibility, or is Into enough?

urschrei avatar May 11 '18 13:05 urschrei

FYI, TryInto is stabilized again! It's hit the latest beta, but not yet stable

frewsxcv avatar Mar 25 '19 11:03 frewsxcv

Finally! 👯‍♂️

urschrei avatar Mar 25 '19 11:03 urschrei

https://github.com/search?l=Rust&q=togeo&type=Code

frewsxcv avatar Jun 29 '19 20:06 frewsxcv

Considering there's usage of this trait in the ecosystem, I'm going to mark it as deprecated:

https://github.com/georust/geo/pull/375

We can remove it in the future after some time has passed

Also the trait is not in geo-types, so it's not a breaking change for geo-types. I'll remove that label

frewsxcv avatar Jul 27 '19 13:07 frewsxcv

Just preparing to close the loop on this:

Looks like, though deprecating ToGeo was merged back in July 2019, it wasn't released until geo-0.13.0 in March 2020.

$ git tag --contains 97630b38 geo-0.13.0

So, what's a reasonable timeframe for removing it... some time after March 2021?

michaelkirk avatar Aug 21 '20 15:08 michaelkirk

I think 12 months is reasonable.

urschrei avatar Aug 21 '20 15:08 urschrei

Removed in https://github.com/georust/geo/pull/892

frewsxcv avatar Jan 24 '23 01:01 frewsxcv