We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 446f3ac commit 3a73c7dCopy full SHA for 3a73c7d
src/policy/concrete.rs
@@ -164,14 +164,14 @@ impl<Pk: MiniscriptKey> ForEachKey<Pk> for Policy<Pk> {
164
}
165
166
impl<'a, Pk: MiniscriptKey> IntoIterator for &'a Policy<Pk> {
167
- type Item = &'a Pk;
168
- type IntoIter = Box<dyn Iterator<Item = &'a Pk> + 'a>;
+ type Item = ForEach<'a, Pk>;
+ type IntoIter = Box<dyn Iterator<Item = ForEach<'a, Pk>> + 'a>;
169
170
fn into_iter(self) -> Self::IntoIter {
171
use std::iter;
172
173
match *self {
174
- Policy::Key(ref pk) => Box::new(iter::once(pk)),
+ Policy::Key(ref pk) => Box::new(iter::once(ForEach::Key(pk))),
175
Policy::Threshold(_, ref subs) | Policy::And(ref subs) => {
176
Box::new(subs.iter().map(|s| s.into_iter()).flatten())
177
0 commit comments