Merge pull request #50 from sondrele/update-nightly
Update nightly
diff --git a/src/distributions/mod.rs b/src/distributions/mod.rs
index e3b8e0f..50f9d95 100644
--- a/src/distributions/mod.rs
+++ b/src/distributions/mod.rs
@@ -17,7 +17,6 @@
//! internally. The `IndependentSample` trait is for generating values
//! that do not need to record state.
-use std::num::{Float, Int};
use std::marker;
use {Rng, Rand};
@@ -130,7 +129,7 @@
// strictly speaking, this is subsumed by the total weight == 0 case
assert!(!items.is_empty(), "WeightedChoice::new called with no items");
- let mut running_total = 0;
+ let mut running_total: u32 = 0;
// we convert the list from individual weights to cumulative
// weights so we can binary search. This *could* drop elements