From b70449a9c283e5d7a86de0d3f5e4d9373d217f15 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Mon, 13 Feb 2023 09:52:35 -0700 Subject: [PATCH] refactor: misc cleanup- move from std::ops to core::ops- remove unnecessary println! calls in testsSigned-off-by: Stephen Waits --- src/height_vector.rs | 1 - src/network_coordinate.rs | 1 - src/vector.rs | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/height_vector.rs b/src/height_vector.rs index d4ece38..b087cae 100644 --- a/src/height_vector.rs +++ b/src/height_vector.rs @@ -249,7 +249,6 @@ mod tests { fn proptest_len(x: FloatType, y: FloatType, h: FloatType) { let len = x.hypot(y) + h.abs(); let a = HeightVector::<2>::from(([x,y],h)); - println!("a = {a:#?}"); if x.is_nan() || x.is_infinite() || y.is_nan() || y.is_infinite() || h.is_nan() || h.is_infinite() || h < 0.0 { // we should've gottne a random univ vector here prop_assert!(approx_eq(a.len(), 1.0, 0.0001)); diff --git a/src/network_coordinate.rs b/src/network_coordinate.rs index 241d9ec..fdd7c8e 100644 --- a/src/network_coordinate.rs +++ b/src/network_coordinate.rs @@ -352,7 +352,6 @@ mod tests { // compute and test the root mean squared error let error = slc.error + nyc.error + lax.error + mad.error; - println!("error = {error}"); assert!(error < 5.0); } diff --git a/src/vector.rs b/src/vector.rs index be9b9a6..2c2b477 100644 --- a/src/vector.rs +++ b/src/vector.rs @@ -8,7 +8,7 @@ use num_traits::Float; use serde::{Deserialize, Serialize}; use serde_with::serde_as; -use std::ops::{Add, Div, Index, Mul, Sub}; +use core::ops::{Add, Div, Index, Mul, Sub}; // // **** Structs ****