bitcoin: Remove error module
The `error` module is empty except for public re-exports. We are still in the "break everything and get the API right" stage so this module adds no value - remove it.
This commit is contained in:
parent
a5b93cb159
commit
98bf213c52
|
@ -120,7 +120,7 @@ pub enum ParseOutPointError {
|
|||
/// Error in TXID part.
|
||||
Txid(hex::HexToArrayError),
|
||||
/// Error in vout part.
|
||||
Vout(crate::error::ParseIntError),
|
||||
Vout(parse::ParseIntError),
|
||||
/// Error in general format.
|
||||
Format,
|
||||
/// Size exceeds max.
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
// SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
//! Contains error types and other error handling tools.
|
||||
|
||||
#[rustfmt::skip] // Keep public re-exports separate.
|
||||
#[doc(inline)]
|
||||
pub use units::parse::{
|
||||
ContainsPrefixError, MissingPrefixError, ParseIntError, PrefixedHexError, UnprefixedHexError,
|
||||
};
|
|
@ -100,7 +100,6 @@ pub mod blockdata;
|
|||
pub mod consensus;
|
||||
// Private until we either make this a crate or flatten it - still to be decided.
|
||||
pub(crate) mod crypto;
|
||||
pub mod error;
|
||||
pub mod hash_types;
|
||||
pub mod merkle_tree;
|
||||
pub mod network;
|
||||
|
|
|
@ -12,13 +12,12 @@ use core::ops::{Add, Div, Mul, Not, Rem, Shl, Shr, Sub};
|
|||
use io::{BufRead, Write};
|
||||
#[cfg(all(test, mutate))]
|
||||
use mutagen::mutate;
|
||||
use units::parse;
|
||||
use units::parse::{self, ParseIntError, PrefixedHexError, UnprefixedHexError};
|
||||
|
||||
use crate::block::Header;
|
||||
use crate::blockdata::block::BlockHash;
|
||||
use crate::consensus::encode::{self, Decodable, Encodable};
|
||||
use crate::consensus::Params;
|
||||
use crate::error::{ParseIntError, PrefixedHexError, UnprefixedHexError};
|
||||
|
||||
/// Implement traits and methods shared by `Target` and `Work`.
|
||||
macro_rules! do_impl {
|
||||
|
|
Loading…
Reference in New Issue