minor: unused warning

This commit is contained in:
Alexander Bulaev 2020-03-17 13:07:02 +03:00
parent 036d7df3eb
commit efe9272816

View File

@ -1,4 +1,3 @@
use float_cmp::approx_eq;
use splines::{Interpolation, Key, Spline};
#[cfg(feature = "cgmath")] use cgmath as cg;
@ -153,6 +152,8 @@ fn several_interpolations_several_keys() {
#[cfg(feature = "cgmath")]
#[test]
fn stroke_bezier_straight() {
use float_cmp::approx_eq;
let keys = vec![
Key::new(0.0, cg::Vector2::new(0., 1.), Interpolation::StrokeBezier(cg::Vector2::new(0., 1.), cg::Vector2::new(0., 1.))),
Key::new(5.0, cg::Vector2::new(5., 1.), Interpolation::StrokeBezier(cg::Vector2::new(5., 1.), cg::Vector2::new(5., 1.)))