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.
This commit is contained in:
Tobin C. Harding 2022-08-09 15:50:02 +10:00
parent 2447d96b44
commit 5cfe9169f5
1 changed files with 5 additions and 6 deletions

View File

@ -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() {