@@ -33,8 +33,8 @@ use crate::miniscript::ScriptContext;
3333use crate :: prelude:: * ;
3434use crate :: util:: MsKeyBuilder ;
3535use 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 ,
3838} ;
3939
4040impl < Pk : MiniscriptKey , Ctx : ScriptContext > Terminal < Pk , Ctx > {
@@ -76,17 +76,14 @@ where
7676}
7777
7878impl < 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
8380 where
8481 Pk : ' a ,
8582 Pk :: Hash : ' a ,
8683 {
8784 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 ) ,
9087 Terminal :: RawPkH ( ..)
9188 | Terminal :: After ( ..)
9289 | Terminal :: Older ( ..)
@@ -118,7 +115,7 @@ impl<Pk: MiniscriptKey, Ctx: ScriptContext> Terminal<Pk, Ctx> {
118115 }
119116 Terminal :: Thresh ( _, ref subs) => subs. iter ( ) . all ( |sub| sub. real_for_each_key ( pred) ) ,
120117 Terminal :: Multi ( _, ref keys) | Terminal :: MultiA ( _, ref keys) => {
121- keys. iter ( ) . all ( |key| pred ( ForEach ( key) ) )
118+ keys. iter ( ) . all ( |key| pred ( key) )
122119 }
123120 }
124121 }
@@ -200,7 +197,7 @@ impl<Pk: MiniscriptKey, Ctx: ScriptContext> Terminal<Pk, Ctx> {
200197}
201198
202199impl < 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
204201 where
205202 Pk : ' a ,
206203 Pk :: Hash : ' a ,
0 commit comments