Use self for Error variant imports

Use `self` to import the error variants to make it more explicit.
This commit is contained in:
Tobin C. Harding 2022-11-18 12:19:28 +11:00
parent 83c2a552db
commit 19e094788f
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 1 additions and 1 deletions

View File

@ -48,8 +48,8 @@ use crate::consensus::encode::{self, Decodable, Encodable};
use crate::hash_types::{TxMerkleNode, Txid}; use crate::hash_types::{TxMerkleNode, Txid};
use crate::hashes::Hash; use crate::hashes::Hash;
use crate::io; use crate::io;
use crate::merkle_tree::MerkleBlockError::*;
use crate::prelude::*; use crate::prelude::*;
use self::MerkleBlockError::*;
/// An error when verifying the merkle block. /// An error when verifying the merkle block.
#[derive(Clone, PartialEq, Eq, Debug)] #[derive(Clone, PartialEq, Eq, Debug)]