From e773da36d2efa7c78d2c6c3d5ab18c4a477ea8ad Mon Sep 17 00:00:00 2001 From: Cameron Hart Date: Sat, 2 Jan 2016 16:15:49 +1100 Subject: [PATCH] Removed constant only used on one place --- tests/matrix.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/matrix.rs b/tests/matrix.rs index 81b4ab9..08dfaca 100644 --- a/tests/matrix.rs +++ b/tests/matrix.rs @@ -190,7 +190,6 @@ pub mod matrix3 { const V: Vector3 = Vector3 { x: 1.0f64, y: 2.0f64, z: 3.0f64 }; const F: f64 = 0.5; - const G: f64 = 6.0; #[test] fn test_neg() { @@ -215,7 +214,7 @@ pub mod matrix3 { Matrix3::new(2.0f64, 8.0f64, 14.0f64, 4.0f64, 10.0f64, 16.0f64, 6.0f64, 12.0f64, 18.0f64)); - assert_eq!(G / D, + assert_eq!(6.0f64 / D, Matrix3::new(2.0f64, 3.0f64, 6.0f64, 3.0f64, 2.0f64, 3.0f64, 6.0f64, 3.0f64, 2.0f64));