Skip to content

Commit

Permalink
patch elements-miniscript for rustc recursion bug
Browse files Browse the repository at this point in the history
  • Loading branch information
apoelstra committed Jul 18, 2023
1 parent bd479c6 commit f551774
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/policy/concrete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,7 @@ impl<Pk: MiniscriptKey> ForEachKey<Pk> for Policy<Pk> {
where
Pk: 'a,
{
let mut pred = |x| pred(x);
match *self {
Policy::Unsatisfiable | Policy::Trivial => true,
Policy::Key(ref pk) => pred(pk),
Expand Down
1 change: 1 addition & 0 deletions src/policy/semantic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ impl<Pk: MiniscriptKey> ForEachKey<Pk> for Policy<Pk> {
where
Pk: 'a,
{
let mut pred = |x| pred(x);
match *self {
Policy::Unsatisfiable | Policy::Trivial => true,
Policy::Key(ref _pkh) => todo!("Semantic Policy KeyHash must store Pk"),
Expand Down

0 comments on commit f551774

Please sign in to comment.