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.
This commit is contained in:
Tobin C. Harding 2025-05-06 08:57:25 +10:00
parent 723cf91060
commit 51fe619fe0
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 6 additions and 2 deletions

View File

@ -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.