ManevilleF / hexx

Hexagonal tools lib in rust
Apache License 2.0
288 stars 23 forks source link

fix: 3d_columns example #75

Closed GuimilXD closed 1 year ago

GuimilXD commented 1 year ago

Using: bevy = "0.10.1" hexx = "0.5.3"

Rust version 1.67.0

ManevilleF commented 1 year ago

The .collect() is required to get a Vec. Does it compile on your computer ?

Screenshot 2023-05-01 at 18 21 50
GuimilXD commented 1 year ago

The .collect() is required to get a Vec. Does it compile on your computer ?

Screenshot 2023-05-01 at 18 21 50

Yes, it only compiles when I remove .collect()

image It seems like the ring already returns a Vec

alice-i-cecile commented 1 year ago

Oh, I bet this is a main vs latest situation again. I bet the API has changed since the last release.

GuimilXD commented 1 year ago

Oh, Gotcha! I thought it was the other way around, thought I was updating the code to run on the latest API version. My bad!

ManevilleF commented 1 year ago

Yes, I managed to get Hex::ring to return an iterator instead of a Vec in #68

Theses changes are in the unreleased section of the changelog, the 0.6.0 should release soon