Remove Display-based fmt::Debug impl

This commit is contained in:
Steven Roose 2020-09-22 12:33:00 +02:00
parent 81ba8b957f
commit 75b8e06f6a
No known key found for this signature in database
GPG Key ID: 2F2A88D7F8D68E87
1 changed files with 1 additions and 6 deletions

View File

@ -44,7 +44,7 @@ pub use language::Language;
/// A BIP39 error.
#[derive(Clone, PartialEq, Eq)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum Error {
/// Mnemonic has a word count that is not a multiple of 6.
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 {
fn cause(&self) -> Option<&error::Error> {