Add a `clone` to script sat-checker to satisfy new soundness rules

This was actually a soundness bug waiting to happen fwiw...but I'm
still not so happy about it.
This commit is contained in:
Andrew Poelstra 2014-09-11 08:03:36 -05:00
parent e0c9844ff2
commit 97bfbe790b
1 changed files with 2 additions and 1 deletions

View File

@ -856,7 +856,8 @@ impl AbstractStackElem {
return Err(AnalyzeValidateFailed);
}
for v in self.validators.iter().map(|v| v.clone()) {
let validators = self.validators.clone();
for v in validators.iter().map(|v| v.clone()) {
try!((v.update)(self, v.args.as_slice()));
}
Ok(())