Skip to content

Commit

Permalink
Merge branch 'minver-fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
ezicheq committed Jul 21, 2021
2 parents 6407563 + d76d1b1 commit 15400f7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ ratio = [ "num-traits" ]
std = [ ]

[dependencies]
num-traits = { version = "0.2", default-features = false, optional = true }
num-traits = { version = "0.2.1", default-features = false, optional = true }
8 changes: 4 additions & 4 deletions src/eq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ impl F32Margin {
}
pub fn epsilon(self, epsilon: f32) -> Self {
F32Margin {
epsilon: epsilon,
epsilon,
..self
}
}
pub fn ulps(self, ulps: i32) -> Self {
F32Margin {
ulps: ulps,
ulps,
..self
}
}
Expand Down Expand Up @@ -192,13 +192,13 @@ impl F64Margin {
}
pub fn epsilon(self, epsilon: f64) -> Self {
F64Margin {
epsilon: epsilon,
epsilon,
..self
}
}
pub fn ulps(self, ulps: i64) -> Self {
F64Margin {
ulps: ulps,
ulps,
..self
}
}
Expand Down
3 changes: 3 additions & 0 deletions src/ulps_eq.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// Copyright 2014-2020 Optimal Computing (NZ) Ltd.
// Licensed under the MIT license. See LICENSE for details.

#[cfg(feature = "num-traits")]
#[allow(unused_imports)]
use num_traits::float::FloatCore;
use super::Ulps;

/// ApproxEqUlps is a trait for approximate equality comparisons.
Expand Down

0 comments on commit 15400f7

Please sign in to comment.