diff --git a/src/policy/concrete.rs b/src/policy/concrete.rs index d696b53a..97ff05f6 100644 --- a/src/policy/concrete.rs +++ b/src/policy/concrete.rs @@ -662,6 +662,7 @@ impl ForEachKey for Policy { where Pk: 'a, { + let mut pred = |x| pred(x); match *self { Policy::Unsatisfiable | Policy::Trivial => true, Policy::Key(ref pk) => pred(pk), diff --git a/src/policy/semantic.rs b/src/policy/semantic.rs index cd6080fe..1dbb30a9 100644 --- a/src/policy/semantic.rs +++ b/src/policy/semantic.rs @@ -64,6 +64,7 @@ impl ForEachKey for Policy { 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"),