Remove Display-based fmt::Debug impl
This commit is contained in:
parent
81ba8b957f
commit
75b8e06f6a
|
@ -44,7 +44,7 @@ pub use language::Language;
|
||||||
|
|
||||||
|
|
||||||
/// A BIP39 error.
|
/// A BIP39 error.
|
||||||
#[derive(Clone, PartialEq, Eq)]
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
/// Mnemonic has a word count that is not a multiple of 6.
|
/// Mnemonic has a word count that is not a multiple of 6.
|
||||||
BadWordCount(usize),
|
BadWordCount(usize),
|
||||||
|
@ -76,11 +76,6 @@ impl fmt::Display for Error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
impl fmt::Debug for Error {
|
|
||||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
|
||||||
fmt::Display::fmt(self, f)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl error::Error for Error {
|
impl error::Error for Error {
|
||||||
fn cause(&self) -> Option<&error::Error> {
|
fn cause(&self) -> Option<&error::Error> {
|
||||||
|
|
Loading…
Reference in New Issue