Skip to content

Commit b9cb447

Browse files
committed
Auto merge of rust-lang#420 - ignatenkobrain:quickcheck0.5, r=BurntSushi
bump quickcheck to 0.5 Signed-off-by: Igor Gnatenko <[email protected]>
2 parents 7640c87 + f2ced64 commit b9cb447

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ utf8-ranges = "1.0.0"
3535
# For examples.
3636
lazy_static = "0.2.2"
3737
# For property based tests.
38-
quickcheck = { version = "0.4.1", default-features = false }
38+
quickcheck = { version = "0.5", default-features = false }
3939
# For generating random test data.
4040
rand = "0.3.15"
4141

regex-syntax/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ homepage = "https://github.com/rust-lang/regex"
99
description = "A regular expression parser."
1010

1111
[dev-dependencies]
12-
quickcheck = { version = "0.4.1", default-features = false }
12+
quickcheck = { version = "0.5", default-features = false }
1313
rand = "0.3.15"

regex-syntax/src/properties.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ impl Arbitrary for Expr {
188188
ClassBytes(ref cls) => Box::new(cls.shrink().map(ClassBytes)),
189189
Group { ref e, ref i, ref name } => {
190190
let (i, name) = (i.clone(), name.clone());
191-
Box::new(e.clone().shrink()
192-
.chain(e.clone().shrink()
191+
Box::new((*e.clone()).shrink()
192+
.chain((*e.clone()).shrink()
193193
.map(move |e| Group {
194194
e: Box::new(e),
195195
i: i.clone(),

0 commit comments

Comments
 (0)