Skip to content

Commit f2ced64

Browse files
cuviperignatenkobrain
authored andcommitted
bump quickcheck to 0.5
Signed-off-by: Igor Gnatenko <[email protected]>
1 parent d504c82 commit f2ced64

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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)