Skip to content

Commit 374324a

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 e73a251 commit 374324a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/policy/concrete.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,15 @@ impl<Pk: MiniscriptKey> Policy<Pk> {
563563
T: Translator<Pk, Q, E>,
564564
Q: MiniscriptKey,
565565
{
566+
self._translate_pk(t)
567+
}
568+
569+
fn _translate_pk<Q, E, T>(&self, t: &mut T) -> Result<Policy<Q>, E>
570+
where
571+
T: Translator<Pk, Q, E>,
572+
Q: MiniscriptKey,
573+
{
574+
566575
use Policy::*;
567576

568577
let mut translated = vec![];

0 commit comments

Comments
 (0)