sunjay / turtle

Create Animated Drawings in Rust
http://turtle.rs
Mozilla Public License 2.0
559 stars 54 forks source link

Use of unstable feature in Rust's Stdlib #249

Closed Heroglyph closed 2 years ago

Heroglyph commented 2 years ago

I am currently attempting to compile the current Turtle master branch "turtle v1.0.0-rc.4" (https://github.com/sunjay/turtle.git#c9918c4e) under MacOS using Rust 1.55. Unfortunately the build fails in "radians.rs", line 84, and "point.rs", lines 337 and 338, with error[E0658]: use of unstable library feature 'float_interpolation' and 'mismatched types'. I would love to use this crate for my Rust seminar. How do I proceed?

sunjay commented 2 years ago

Thanks for taking the time to report this! It sounds like the standard library added some methods that conflict with the interpolation crate we use for linear interpolation. We may need to switch to using fully-qualified syntax for those methods to avoid the conflict.

I'd happily accept a PR for fixing this. Should require changing only a few lines of code.

sunjay commented 2 years ago

Fixed in #250