Skip to content

Commit

Permalink
remove call to range.contains()
Browse files Browse the repository at this point in the history
range.contains is unstable in rust 1.34, which is supported by this
library.
  • Loading branch information
maxbla committed Dec 7, 2019
1 parent e8290f1 commit 29796dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/arbitrary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,6 @@ mod test {
use std::hash::Hash;
use std::num::Wrapping;
use std::path::PathBuf;
use super::Arbitrary;
use super::StdGen;

#[test]
Expand Down Expand Up @@ -1047,7 +1046,7 @@ mod test {
let mut lim = lim.peekable();
while let (Some(low), Some(&high)) = (lim.next(), lim.peek()) {
assert!(arbys.iter()
.find(|arby| (low..=high).contains(arby))
.find(|arby| low <= **arby && **arby <= high)
.is_some(),
"Arbitrary doesn't generate numbers in {}..={}", low, high)
}
Expand Down

0 comments on commit 29796dc

Please sign in to comment.