Skip to content

Commit 1eaa6a0

Browse files
committed
Fix access to float constants
1 parent eb8de33 commit 1eaa6a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/complex_float.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ mod test {
321321
test::{_0_0i, _0_1i, _1_0i, _1_1i, float::close},
322322
Complex,
323323
};
324+
use std::f64; // for constants before Rust 1.43.
324325

325326
fn closef(a: f64, b: f64) -> bool {
326327
close_to_tolf(a, b, 1e-10)

0 commit comments

Comments
 (0)