about summary refs log tree commit diff
path: root/src/libextra
diff options
context:
space:
mode:
authorBrendan Zabarauskas <bjzaba@yahoo.com.au>2014-01-13 10:33:54 +1100
committerBrendan Zabarauskas <bjzaba@yahoo.com.au>2014-01-13 10:33:54 +1100
commitcd248e29b14e58dc583d71b6bcdf2b8091fb9a9f (patch)
treece1492d55ae6498f49e9c088e26afd50ab7841e9 /src/libextra
parent1246f0b09441d47cdf29d0d7852a1d1a87533756 (diff)
downloadrust-cd248e29b14e58dc583d71b6bcdf2b8091fb9a9f.tar.gz
rust-cd248e29b14e58dc583d71b6bcdf2b8091fb9a9f.zip
Clean up std::num::cmath and remove stale comments
Diffstat (limited to 'src/libextra')
-rw-r--r--src/libextra/test.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libextra/test.rs b/src/libextra/test.rs
index a978d1f65be..8d4c4471c89 100644
--- a/src/libextra/test.rs
+++ b/src/libextra/test.rs
@@ -979,7 +979,7 @@ impl MetricMap {
                     if delta.abs() <= noise {
                         LikelyNoise
                     } else {
-                        let pct = delta.abs() / (vold.value).max(&f64::epsilon) * 100.0;
+                        let pct = delta.abs() / (vold.value).max(&f64::EPSILON) * 100.0;
                         if vold.noise < 0.0 {
                             // When 'noise' is negative, it means we want
                             // to see deltas that go up over time, and can