From 8696cb4b077b5a05084713784ece694cc540c7d4 Mon Sep 17 00:00:00 2001 From: "Jamil Lambert, PhD" Date: Tue, 15 Oct 2024 14:05:19 +0100 Subject: [PATCH] Fix unused import warning An import was only used behind a feature gate. The feature gate has been added to the use statement to remove the warning. --- bitcoin/src/sign_message.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/bitcoin/src/sign_message.rs b/bitcoin/src/sign_message.rs index dc2e6db34..baf9ce1de 100644 --- a/bitcoin/src/sign_message.rs +++ b/bitcoin/src/sign_message.rs @@ -6,6 +6,7 @@ //! library is used with the `secp-recovery` feature. use hashes::{sha256d, HashEngine}; +#[cfg(feature = "secp-recovery")] use secp256k1::SecretKey; use crate::consensus::encode::WriteExt;