From 277e8e96bdd1fc775fe3d5b66dce2818108db4e1 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Thu, 2 Feb 2023 12:21:41 +1100 Subject: [PATCH] Add KeyPair import to rustdoc example Recently, and bizarrely, a PR merged that broke `cargo test --doc`. Add an import for `KeyPair` to the `schnorr` rustdoc example. --- bitcoin/src/crypto/schnorr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin/src/crypto/schnorr.rs b/bitcoin/src/crypto/schnorr.rs index 5cf9cec8..3f1630c6 100644 --- a/bitcoin/src/crypto/schnorr.rs +++ b/bitcoin/src/crypto/schnorr.rs @@ -48,7 +48,7 @@ pub type UntweakedKeyPair = KeyPair; /// # Examples /// ``` /// # #[cfg(feature = "rand-std")] { -/// # use bitcoin::schnorr::{TweakedKeyPair, TweakedPublicKey}; +/// # use bitcoin::schnorr::{KeyPair, TweakedKeyPair, TweakedPublicKey}; /// # use bitcoin::secp256k1::{rand, Secp256k1}; /// # let secp = Secp256k1::new(); /// # let keypair = TweakedKeyPair::dangerous_assume_tweaked(KeyPair::new(&secp, &mut rand::thread_rng()));