You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-regex-syntax/0001-bump-quickcheck-to-0.5...

29 lines
1.1 KiB

From f2ced64455d7e19555ec5bb1456fc073730c3aac Mon Sep 17 00:00:00 2001
From: Josh Stone <jistone@redhat.com>
Date: Wed, 29 Nov 2017 11:06:48 +0100
Subject: [PATCH] bump quickcheck to 0.5
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
---
regex-syntax/src/properties.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/regex-syntax/src/properties.rs b/regex-syntax/src/properties.rs
index 9e75f99..c1da573 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(),
--
2.15.1