Skip to content

Commit 9e454fc

Browse files
committed
Use the external num crate
1 parent 0cd4198 commit 9e454fc

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
language: rust
2-
rust: nightly
2+
rust: stable

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ path = "src/lib.rs"
1515
test = true
1616
doctest = true
1717
doc = true
18+
19+
[dependencies]
20+
num = "0.1"

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@
5555
//! It may seem reasonable to expect numbers that differ by less than 0.000001 to be equal, but
5656
//! this does not always work well (consider comparing -0.0000000028 to +0.00000097).
5757
58-
#![feature(zero_one)]
58+
extern crate num;
59+
use num::Zero;
5960

6061
use std::mem;
6162
use std::cmp::{Ordering,PartialOrd};
6263
use std::ops::{Sub,Div};
63-
use std::num::Zero;
6464

6565
/// A trait for floating point numbers which computes the number of representable
6666
/// values or ULPs (Units of Least Precision) that separate the two given values.

0 commit comments

Comments
 (0)