@@ -45,7 +45,8 @@ use crate::miniscript::decode::Terminal;
4545use crate :: miniscript:: types:: extra_props:: ExtData ;
4646use crate :: miniscript:: types:: Type ;
4747use crate :: {
48- expression, plan, Error , ForEachKey , MiniscriptKey , ToPublicKey , TranslatePk , Translator ,
48+ expression, plan, Error , ForEachKey , FromStrKey , MiniscriptKey , ToPublicKey , TranslatePk ,
49+ Translator ,
4950} ;
5051#[ cfg( test) ]
5152mod ms_tests;
@@ -617,7 +618,7 @@ where
617618 Ok ( ms)
618619}
619620
620- impl < Pk : crate :: FromStrKey , Ctx : ScriptContext > Miniscript < Pk , Ctx > {
621+ impl < Pk : FromStrKey , Ctx : ScriptContext > Miniscript < Pk , Ctx > {
621622 /// Attempt to parse an insane(scripts don't clear sanity checks)
622623 /// from string into a Miniscript representation.
623624 /// Use this to parse scripts with repeated pubkeys, timelock mixing, malleable
@@ -648,17 +649,13 @@ impl<Pk: crate::FromStrKey, Ctx: ScriptContext> Miniscript<Pk, Ctx> {
648649 }
649650}
650651
651- impl < Pk : crate :: FromStrKey , Ctx : ScriptContext > crate :: expression:: FromTree
652- for Arc < Miniscript < Pk , Ctx > >
653- {
652+ impl < Pk : FromStrKey , Ctx : ScriptContext > crate :: expression:: FromTree for Arc < Miniscript < Pk , Ctx > > {
654653 fn from_tree ( top : & expression:: Tree ) -> Result < Arc < Miniscript < Pk , Ctx > > , Error > {
655654 Ok ( Arc :: new ( expression:: FromTree :: from_tree ( top) ?) )
656655 }
657656}
658657
659- impl < Pk : crate :: FromStrKey , Ctx : ScriptContext > crate :: expression:: FromTree
660- for Miniscript < Pk , Ctx >
661- {
658+ impl < Pk : FromStrKey , Ctx : ScriptContext > crate :: expression:: FromTree for Miniscript < Pk , Ctx > {
662659 /// Parse an expression tree into a Miniscript. As a general rule, this
663660 /// should not be called directly; rather go through the descriptor API.
664661 fn from_tree ( top : & expression:: Tree ) -> Result < Miniscript < Pk , Ctx > , Error > {
@@ -667,7 +664,7 @@ impl<Pk: crate::FromStrKey, Ctx: ScriptContext> crate::expression::FromTree
667664 }
668665}
669666
670- impl < Pk : crate :: FromStrKey , Ctx : ScriptContext > str:: FromStr for Miniscript < Pk , Ctx > {
667+ impl < Pk : FromStrKey , Ctx : ScriptContext > str:: FromStr for Miniscript < Pk , Ctx > {
671668 type Err = Error ;
672669 /// Parse a Miniscript from string and perform sanity checks
673670 /// See [Miniscript::from_str_insane] to parse scripts from string that
0 commit comments