From 9ce9251a175852d2ee77e2311294e15c6bd56eff Mon Sep 17 00:00:00 2001 From: Acrimon Date: Tue, 24 Sep 2019 11:56:19 +0200 Subject: [PATCH] Formatted code. --- common/src/util/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/util/mod.rs b/common/src/util/mod.rs index d0694f0631..cb443ef2fd 100644 --- a/common/src/util/mod.rs +++ b/common/src/util/mod.rs @@ -28,7 +28,7 @@ mod approx_powf_tests { #[test] fn accuracy_1() { - let test_values: Vec = vec!(3.0, 2.5, 1.5, 2.2); + let test_values: Vec = vec![3.0, 2.5, 1.5, 2.2]; test_values.windows(2).for_each(|a| { assert!(close_ei(a[0].powf(a[1]), super::approx_powf(a[0], a[1]))); });