diff --git a/Cargo.toml b/Cargo.toml index 179df1cf0a..bc9975eead 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,7 +35,7 @@ utf8-ranges = "1.0.0" # For examples. lazy_static = "0.2.2" # For property based tests. -quickcheck = { version = "0.4.1", default-features = false } +quickcheck = { version = "0.5", default-features = false } # For generating random test data. rand = "0.3.15" diff --git a/regex-syntax/Cargo.toml b/regex-syntax/Cargo.toml index c6295395b8..4ff62f546b 100644 --- a/regex-syntax/Cargo.toml +++ b/regex-syntax/Cargo.toml @@ -9,5 +9,5 @@ homepage = "https://github.com/rust-lang/regex" description = "A regular expression parser." [dev-dependencies] -quickcheck = { version = "0.4.1", default-features = false } +quickcheck = { version = "0.5", default-features = false } rand = "0.3.15" diff --git a/regex-syntax/src/properties.rs b/regex-syntax/src/properties.rs index 9e75f99a4e..c1da573721 100644 --- a/regex-syntax/src/properties.rs +++ b/regex-syntax/src/properties.rs @@ -188,8 +188,8 @@ impl Arbitrary for Expr { ClassBytes(ref cls) => Box::new(cls.shrink().map(ClassBytes)), Group { ref e, ref i, ref name } => { let (i, name) = (i.clone(), name.clone()); - Box::new(e.clone().shrink() - .chain(e.clone().shrink() + Box::new((*e.clone()).shrink() + .chain((*e.clone()).shrink() .map(move |e| Group { e: Box::new(e), i: i.clone(),