Merge pull request #1124 from Leo1003/eckey_debug

Add Debug impl for EcKey
This commit is contained in:
Steven Fackler 2019-06-10 08:53:33 -07:00 committed by GitHub
commit 3629bb6f26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -34,6 +34,7 @@
use ffi;
use foreign_types::{ForeignType, ForeignTypeRef};
use libc::c_int;
use std::fmt;
use std::ptr;
use bn::{BigNumContextRef, BigNumRef};
@ -825,6 +826,12 @@ impl<T> Clone for EcKey<T> {
}
}
impl<T> fmt::Debug for EcKey<T> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "EcKey")
}
}
#[cfg(test)]
mod test {
use hex::FromHex;