From efe9272816a17e8a8680cdbb5e88e948c2e38be5 Mon Sep 17 00:00:00 2001 From: Alexander Bulaev Date: Tue, 17 Mar 2020 13:07:02 +0300 Subject: [PATCH] minor: unused warning --- tests/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/mod.rs b/tests/mod.rs index dddeca0..c41bf0e 100644 --- a/tests/mod.rs +++ b/tests/mod.rs @@ -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.)))