diff --git a/src/policy/semantic.rs b/src/policy/semantic.rs index 9636c0d2a..dc84a9439 100644 --- a/src/policy/semantic.rs +++ b/src/policy/semantic.rs @@ -127,14 +127,6 @@ impl Policy { /// assert_eq!(real_policy, expected_policy); /// ``` pub fn translate_pk(&self, t: &mut T) -> Result, E> - where - T: Translator, - Q: MiniscriptKey, - { - self._translate_pk(t) - } - - fn _translate_pk(&self, t: &mut T) -> Result, E> where T: Translator, Q: MiniscriptKey, @@ -151,7 +143,7 @@ impl Policy { Policy::Older(n) => Ok(Policy::Older(n)), Policy::Threshold(k, ref subs) => { let new_subs: Result>, _> = - subs.iter().map(|sub| sub._translate_pk(t)).collect(); + subs.iter().map(|sub| sub.translate_pk(t)).collect(); new_subs.map(|ok| Policy::Threshold(k, ok)) } }