minor: unused warning
This commit is contained in:
parent
036d7df3eb
commit
efe9272816
@ -1,4 +1,3 @@
|
|||||||
use float_cmp::approx_eq;
|
|
||||||
use splines::{Interpolation, Key, Spline};
|
use splines::{Interpolation, Key, Spline};
|
||||||
|
|
||||||
#[cfg(feature = "cgmath")] use cgmath as cg;
|
#[cfg(feature = "cgmath")] use cgmath as cg;
|
||||||
@ -153,6 +152,8 @@ fn several_interpolations_several_keys() {
|
|||||||
#[cfg(feature = "cgmath")]
|
#[cfg(feature = "cgmath")]
|
||||||
#[test]
|
#[test]
|
||||||
fn stroke_bezier_straight() {
|
fn stroke_bezier_straight() {
|
||||||
|
use float_cmp::approx_eq;
|
||||||
|
|
||||||
let keys = vec![
|
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(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.)))
|
Key::new(5.0, cg::Vector2::new(5., 1.), Interpolation::StrokeBezier(cg::Vector2::new(5., 1.), cg::Vector2::new(5., 1.)))
|
||||||
|
Loading…
Reference in New Issue
Block a user