From 51fe619fe0c9e154a7979a3a71c56707bfa73e9c Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 6 May 2025 08:57:25 +1000 Subject: [PATCH] Set deprecation to released date of to_inner In #4373 we added a couple new conversion methods and deprecated the `to_inner` ones. During that the deprecation date was set to `0.33.0`. We have backported the changes and will deprecate in `0.32.6` so set the version number now so we don't forget later. --- bitcoin/src/crypto/key.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bitcoin/src/crypto/key.rs b/bitcoin/src/crypto/key.rs index be464bc33..2632aca82 100644 --- a/bitcoin/src/crypto/key.rs +++ b/bitcoin/src/crypto/key.rs @@ -887,8 +887,10 @@ impl TweakedPublicKey { TweakedPublicKey(key) } + /// Returns the underlying public key. + #[inline] #[doc(hidden)] - #[deprecated(since = "0.33.0", note = "use to_x_only_public_key() instead")] + #[deprecated(since = "0.32.6", note = "use to_x_only_public_key() instead")] pub fn to_inner(self) -> XOnlyPublicKey { self.0 } /// Returns the underlying x-only public key. @@ -915,8 +917,10 @@ impl TweakedKeypair { #[inline] pub fn dangerous_assume_tweaked(pair: Keypair) -> TweakedKeypair { TweakedKeypair(pair) } + /// Returns the underlying key pair. + #[inline] #[doc(hidden)] - #[deprecated(since = "0.33.0", note = "use to_keypair() instead")] + #[deprecated(since = "0.32.6", note = "use to_keypair() instead")] pub fn to_inner(self) -> Keypair { self.0 } /// Returns the underlying key pair.