@@ -33,8 +33,8 @@ use crate::miniscript::ScriptContext;
33
33
use crate :: prelude:: * ;
34
34
use crate :: util:: MsKeyBuilder ;
35
35
use crate :: {
36
- errstr, expression, script_num_size, Error , ForEach , ForEachKey , Miniscript , MiniscriptKey ,
37
- Terminal , ToPublicKey , TranslatePk , Translator ,
36
+ errstr, expression, script_num_size, Error , ForEachKey , Miniscript , MiniscriptKey , Terminal ,
37
+ ToPublicKey , TranslatePk , Translator ,
38
38
} ;
39
39
40
40
impl < Pk : MiniscriptKey , Ctx : ScriptContext > Terminal < Pk , Ctx > {
@@ -76,17 +76,14 @@ where
76
76
}
77
77
78
78
impl < Pk : MiniscriptKey , Ctx : ScriptContext > Terminal < Pk , Ctx > {
79
- pub ( super ) fn real_for_each_key < ' a , F : FnMut ( ForEach < ' a , Pk > ) -> bool > (
80
- & ' a self ,
81
- pred : & mut F ,
82
- ) -> bool
79
+ pub ( super ) fn real_for_each_key < ' a , F : FnMut ( & ' a Pk ) -> bool > ( & ' a self , pred : & mut F ) -> bool
83
80
where
84
81
Pk : ' a ,
85
82
Pk :: Hash : ' a ,
86
83
{
87
84
match * self {
88
- Terminal :: PkK ( ref p) => pred ( ForEach ( p ) ) ,
89
- Terminal :: PkH ( ref p) => pred ( ForEach ( p ) ) ,
85
+ Terminal :: PkK ( ref p) => pred ( p ) ,
86
+ Terminal :: PkH ( ref p) => pred ( p ) ,
90
87
Terminal :: RawPkH ( ..)
91
88
| Terminal :: After ( ..)
92
89
| Terminal :: Older ( ..)
@@ -118,7 +115,7 @@ impl<Pk: MiniscriptKey, Ctx: ScriptContext> Terminal<Pk, Ctx> {
118
115
}
119
116
Terminal :: Thresh ( _, ref subs) => subs. iter ( ) . all ( |sub| sub. real_for_each_key ( pred) ) ,
120
117
Terminal :: Multi ( _, ref keys) | Terminal :: MultiA ( _, ref keys) => {
121
- keys. iter ( ) . all ( |key| pred ( ForEach ( key) ) )
118
+ keys. iter ( ) . all ( |key| pred ( key) )
122
119
}
123
120
}
124
121
}
@@ -200,7 +197,7 @@ impl<Pk: MiniscriptKey, Ctx: ScriptContext> Terminal<Pk, Ctx> {
200
197
}
201
198
202
199
impl < Pk : MiniscriptKey , Ctx : ScriptContext > ForEachKey < Pk > for Terminal < Pk , Ctx > {
203
- fn for_each_key < ' a , F : FnMut ( ForEach < ' a , Pk > ) -> bool > ( & ' a self , mut pred : F ) -> bool
200
+ fn for_each_key < ' a , F : FnMut ( & ' a Pk ) -> bool > ( & ' a self , mut pred : F ) -> bool
204
201
where
205
202
Pk : ' a ,
206
203
Pk :: Hash : ' a ,
0 commit comments