From 5cfe9169f547ec0cc35eb63372c06acd1603a2d6 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 9 Aug 2022 15:50:02 +1000 Subject: [PATCH] Refactor tests module imports Refactor the import statements for the bip158 tests module. Includes removing `extern crate` which is unnecessary now we have edition 2018. --- src/util/bip158.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/util/bip158.rs b/src/util/bip158.rs index 80880fff..fb409a4c 100644 --- a/src/util/bip158.rs +++ b/src/util/bip158.rs @@ -542,16 +542,15 @@ impl<'a, W: io::Write> BitStreamWriter<'a, W> { #[cfg(test)] mod test { - use crate::hash_types::BlockHash; - use crate::hashes::hex::FromHex; - use super::*; - extern crate serde_json; - use self::serde_json::Value; + use std::collections::HashMap; + + use serde_json::Value; use crate::consensus::encode::deserialize; - use std::collections::HashMap; + use crate::hash_types::BlockHash; + use crate::hashes::hex::FromHex; #[test] fn test_blockfilters() {