From 29d23b4b3a01f85733938f4d54040613f167074c Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Mon, 28 Oct 2024 08:21:26 +1100 Subject: [PATCH] Move import statement The code using this import is a feature gated test, move the import into the test. Found with clippy. Internal change only. --- bitcoin/src/crypto/sighash.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bitcoin/src/crypto/sighash.rs b/bitcoin/src/crypto/sighash.rs index a9f15445a..842621d53 100644 --- a/bitcoin/src/crypto/sighash.rs +++ b/bitcoin/src/crypto/sighash.rs @@ -1509,7 +1509,6 @@ mod tests { use crate::consensus::deserialize; use crate::locktime::absolute; use crate::script::ScriptBufExt as _; - use crate::taproot::TapTweakHashExt as _; extern crate serde_json; @@ -1827,6 +1826,8 @@ mod tests { fn bip_341_sighash_tests() { use hex::DisplayHex; + use crate::taproot::TapTweakHashExt as _; + fn sighash_deser_numeric<'de, D>(deserializer: D) -> Result where D: serde::Deserializer<'de>,