@@ -273,7 +273,6 @@ impl SecretKey {
273
273
///
274
274
/// Returns an error if the resulting key would be invalid.
275
275
#[ inline]
276
- #[ must_use = "you forgot to use the tweaked secret key" ]
277
276
pub fn add_tweak ( mut self , tweak : & Scalar ) -> Result < SecretKey , Error > {
278
277
unsafe {
279
278
if ffi:: secp256k1_ec_seckey_tweak_add (
@@ -304,7 +303,6 @@ impl SecretKey {
304
303
///
305
304
/// Returns an error if the resulting key would be invalid.
306
305
#[ inline]
307
- #[ must_use = "you forgot to use the tweaked secret key" ]
308
306
pub fn mul_tweak ( mut self , tweak : & Scalar ) -> Result < SecretKey , Error > {
309
307
unsafe {
310
308
if ffi:: secp256k1_ec_seckey_tweak_mul (
@@ -570,7 +568,6 @@ impl PublicKey {
570
568
///
571
569
/// Returns an error if the resulting key would be invalid.
572
570
#[ inline]
573
- #[ must_use = "you forgot to use the tweaked public key" ]
574
571
pub fn add_exp_tweak < C : Verification > (
575
572
mut self ,
576
573
secp : & Secp256k1 < C > ,
@@ -607,7 +604,6 @@ impl PublicKey {
607
604
///
608
605
/// Returns an error if the resulting key would be invalid.
609
606
#[ inline]
610
- #[ must_use = "you forgot to use the tweaked public key" ]
611
607
pub fn mul_tweak < C : Verification > (
612
608
mut self ,
613
609
secp : & Secp256k1 < C > ,
@@ -977,7 +973,6 @@ impl KeyPair {
977
973
/// ```
978
974
// TODO: Add checked implementation
979
975
#[ inline]
980
- #[ must_use = "you forgot to use the tweaked key pair" ]
981
976
pub fn add_xonly_tweak < C : Verification > (
982
977
mut self ,
983
978
secp : & Secp256k1 < C > ,
@@ -1277,7 +1272,6 @@ impl XOnlyPublicKey {
1277
1272
/// let tweaked = xonly.add_tweak(&secp, &tweak).expect("Improbable to fail with a randomly generated tweak");
1278
1273
/// # }
1279
1274
/// ```
1280
- #[ must_use = "you forgot to use the tweaked xonly pubkey" ]
1281
1275
pub fn add_tweak < V : Verification > (
1282
1276
mut self ,
1283
1277
secp : & Secp256k1 < V > ,
0 commit comments