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.
This commit is contained in:
Tobin C. Harding 2024-10-28 08:21:26 +11:00
parent e84346644e
commit 29d23b4b3a
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 2 additions and 1 deletions

View File

@ -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<TapSighashType, D::Error>
where
D: serde::Deserializer<'de>,