Skip to content

Commit aeb1a7c

Browse files
committed
Add back in helper function _translate_pk
Recently while removing recursion I mistakenly removed the `_translate_pk` function forgetting that this was a trick to prevent compilation explosion caused by the generics.
1 parent 1ed13a9 commit aeb1a7c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/policy/concrete.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,14 @@ impl<Pk: MiniscriptKey> Policy<Pk> {
559559
///
560560
/// For example usage please see [`crate::policy::semantic::Policy::translate_pk`].
561561
pub fn translate_pk<Q, E, T>(&self, t: &mut T) -> Result<Policy<Q>, E>
562+
where
563+
T: Translator<Pk, Q, E>,
564+
Q: MiniscriptKey,
565+
{
566+
self._translate_pk(t)
567+
}
568+
569+
fn _translate_pk<Q, E, T>(&self, t: &mut T) -> Result<Policy<Q>, E>
562570
where
563571
T: Translator<Pk, Q, E>,
564572
Q: MiniscriptKey,

0 commit comments

Comments
 (0)