From 4c9bab9f6eeba6d8f3aff231c6d2e9516f523f1d Mon Sep 17 00:00:00 2001 From: Tobin Harding Date: Fri, 11 Feb 2022 07:47:52 +0000 Subject: [PATCH] Remove explicit mention of feature requirements We are using `cfg_attr` to instruct the rustdocs build system to highlight feature requirements for functions, there is no need to explicitly mention feature requirements in the text. --- src/schnorr.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/schnorr.rs b/src/schnorr.rs index ea860d3..a66b71e 100644 --- a/src/schnorr.rs +++ b/src/schnorr.rs @@ -128,7 +128,6 @@ impl Secp256k1 { /// Create a schnorr signature internally using the ThreadRng random number /// generator to generate the auxiliary random data. - /// Requires compilation with "rand-std" feature. #[cfg(any(test, feature = "rand-std"))] #[cfg_attr(docsrs, doc(cfg(feature = "rand-std")))] #[deprecated(since = "0.21.0", note = "Use sign_schnorr instead.")] @@ -138,7 +137,6 @@ impl Secp256k1 { /// Create a schnorr signature internally using the ThreadRng random number /// generator to generate the auxiliary random data. - /// Requires compilation with "rand-std" feature. #[cfg(any(test, feature = "rand-std"))] #[cfg_attr(docsrs, doc(cfg(feature = "rand-std")))] pub fn sign_schnorr(&self, msg: &Message, keypair: &KeyPair) -> Signature { @@ -191,8 +189,7 @@ impl Secp256k1 { } /// Create a schnorr signature using the given random number generator to - /// generate the auxiliary random data. Requires compilation with "rand" - /// feature. + /// generate the auxiliary random data. #[cfg(any(test, feature = "rand"))] #[cfg_attr(docsrs, doc(cfg(feature = "rand")))] #[deprecated(since = "0.21.0", note = "Use sign_schnorr_with_rng instead.")] @@ -206,8 +203,7 @@ impl Secp256k1 { } /// Create a schnorr signature using the given random number generator to - /// generate the auxiliary random data. Requires compilation with "rand" - /// feature. + /// generate the auxiliary random data. #[cfg(any(test, feature = "rand"))] #[cfg_attr(docsrs, doc(cfg(feature = "rand")))] pub fn sign_schnorr_with_rng( @@ -262,7 +258,7 @@ impl Secp256k1 { /// Generates a random Schnorr `KeyPair` and its associated Schnorr `XOnlyPublicKey`. /// /// Convenience function for [KeyPair::new] and [KeyPair::public_key]. - /// Requires a signing-capable context and requires compilation with the "rand" feature. + /// Requires a signing-capable context. #[inline] #[cfg(any(test, feature = "rand"))] #[cfg_attr(docsrs, doc(cfg(feature = "rand")))]